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.
References
| Link | Resource |
|---|---|
| https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9 | Exploit Third Party Advisory |
| https://www.npmjs.com | Product |
Configurations
History
No history.
Information
Published : 2025-09-08 18:15
Updated : 2025-09-12 20:37
NVD link : CVE-2025-57285
Mitre link : CVE-2025-57285
CVE.ORG link : CVE-2025-57285
JSON object : View
Products Affected
codecept
- codeceptjs
CWE
CWE-77
Improper Neutralization of Special Elements used in a Command ('Command Injection')
