Vulnerability Explorer›CVE-2025-57285
VULNERABILITY
CVE-2025-57285
Common Vulnerabilities and Exposures record
CRITICAL
Summary
codeceptjs 3.7.3 contains a command injection vulnerability in the emptyFolder function (lib/utils.js). The execSync command directly concatenates the user-controlled directoryPath parameter without sanitization or escaping, allowing attackers to execute arbitrary commands.
Risk
- CVSS
- 9.8
- Severity
- CRITICAL
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Timeline
- Published
- Sep 8, 2025 18:15
- Modified
- Nov 7, 2026 18:10
- Last observed
- Nov 7, 2026 14:00
CWE
Affected product identifiers
cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:*