CVE-2025-57285Published Sep 8, 2025 · Sep 8Updated Nov 9
CodeceptJS's incomprehensive sanitation can lead to Command Injection
Critical9.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| codeceptjs npm |
|
|
Original 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.
From the CVE record · mitre