CVE-2025-57285
Critical
Description
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.
SeverityCritical
CVSS9.8
Exploit probability—
ProductCodeceptjs
PublishedSep 8, 2025
First seenSep 8, 2025
Weakness typeCWE-77Command injection
How to fix
Update
- codeceptjs3.7.5 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| codecept codeceptjs | 3.7.3 | — |
| codeceptjsnpm | 3.5.0 ≤ v < 3.7.5 | 3.7.5 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.