{"id":"CVE-2025-57285","published":"2025-09-08T00:00:00Z","modified":"2025-09-08T19:40:26Z","title":"codeceptjs 3.7.3 contains a command injection vulnerability in the emptyFolder function (lib/utils.js)","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.02169,"percentile":0.82707,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://www.npmjs.com","tags":[]},{"url":"https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9","tags":[]}],"priority":{"score":23.4,"factors":[{"name":"EPSS percentile","points":16.54},{"name":"CVSS severity","points":6.86}]},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-09-08T19:39:52.492234Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"codeceptjs","vulnerableRanges":[">=3.5.0, <3.7.5"],"patched":["3.7.5"],"from":["GHSA-34w8-mcwr-vg29"],"provenance":"source"}],"summary":{"text":"The codeceptjs 3.7.3 package has a command injection flaw in the emptyFolder function in lib/utils.js, where the execSync call concatenates the directoryPath parameter into the shell command without sanitization or escaping. An attacker who can supply a crafted directoryPath value can execute arbitrary commands, and the attack vector indicates this is reachable over the network with low complexity, requiring no privileges and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:25Z"},"euvd":{"id":"EUVD-2025-27152","exploited":false,"provenance":"source"}}