{"id":"CVE-2025-57285","details":"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.","aliases":["GHSA-34w8-mcwr-vg29"],"modified":"2026-07-15T01:49:07.332598227Z","published":"2025-09-08T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57285.json"},"references":[{"type":"WEB","url":"https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9"},{"type":"WEB","url":"https://www.npmjs.com"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57285.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57285"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/codeceptjs/codeceptjs","events":[{"introduced":"233838e779942d8065117c9d0d71edaf7b92b64a"},{"last_affected":"233838e779942d8065117c9d0d71edaf7b92b64a"}],"database_specific":{"cpe":"cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"3.7.3"},{"last_affected":"3.7.3"}],"source":"CPE_STRING"}}],"versions":["3.7.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-57285.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}