GHSA-34w8-mcwr-vg29
CRITICALCVE-2025-57285CodeceptJS versions 3.5.0 through 3.7.5-beta.18 contain 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.
- Affected
- >= 3.5.0, < 3.7.5
- Fixed in
- 3.7.5
- Weakness
- CWE-77
- Published
- 2025-09-08
- Source
- github