{"affected":[{"conditional":false,"product":"codeceptjs","source":"NVD","vendor":"codecept","versions":[{"status":"affected","version":"3.7.3","versionType":"custom"}]}],"cpeConfigurations":[{"negate":false,"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:*","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"OR"}],"cveId":"CVE-2025-57285","cwes":["CWE-77"],"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.","epss":null,"exploits":[{"kind":"exploit","source":"cve@mitre.org","url":"https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9"}],"kev":null,"metrics":[{"score":9.8,"severity":"critical","source":"NVD: 134c704f-9b21-4f2e-91b3-4a467353bcc0","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1794075000200,"publishedAt":1757355334160,"references":[{"source":"cve@mitre.org","tags":["Exploit","Third Party Advisory"],"url":"https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9"},{"source":"cve@mitre.org","tags":["Product"],"url":"https://www.npmjs.com/"}],"remediation":[],"revision":"a6f23867546a0ada7037cae156b1826f75cac6d838f9d559918230f71ec09308","sources":[{"modifiedAt":1794075000200,"name":"NVD","retrievedAt":1794075410636,"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57285"}],"ssvc":{"assessedAt":1757360392492,"automatable":"yes","exploitation":"poc","source":"NVD SSVC: 134c704f-9b21-4f2e-91b3-4a467353bcc0","technicalImpact":"total"},"status":"published","title":"CVE-2025-57285","updatedAt":1794075410636}