{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-57285","id":"CVE-2025-57285","title":"CodeceptJS's incomprehensive sanitation can lead to Command Injection","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.","descriptionLong":"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.","published":"2025-09-08T00:00:00.000Z","updated":"2026-11-09T02:30:33.256955150Z","reserved":"2025-08-17T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"codeceptjs","purl":"pkg:npm/codeceptjs","ranges":[">=3.5.0 <3.7.5"],"fixed":["3.7.5"],"advisory":"GHSA-34w8-mcwr-vg29"}],"cwes":["CWE-77"],"aliases":["GHSA-34w8-mcwr-vg29"],"references":[{"url":"https://www.npmjs.com","tags":["Product","web"]},{"url":"https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9","tags":["Exploit","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57285.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57285","tags":["advisory"]},{"url":"https://github.com/codeceptjs/CodeceptJS/pull/3604","tags":["web"]},{"url":"https://github.com/codeceptjs/CodeceptJS/pull/5190","tags":["web"]},{"url":"https://github.com/codeceptjs/CodeceptJS","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.02169,"epssPercentile":0.82655,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-57285","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57285","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-57285","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-34w8-mcwr-vg29","ok":true,"note":"GHSA-34w8-mcwr-vg29"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-57285","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}