CVE-2025-57285
Last modified
CVE-2025-57285 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. EPSS estimates a 2.17% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Codecept | Codeceptjs | 3.7.3 |
References
- https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9Exploit, Third Party Advisory
- https://www.npmjs.comProduct
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-57285?
How severe is CVE-2025-57285?
How do I fix CVE-2025-57285?
Are you affected by CVE-2025-57285?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
