{"id":"CVE-2025-57285","aliases":["GHSA-34w8-mcwr-vg29"],"url":"https://o3.security/vulnerability/CVE-2025-57285","summary":"CodeceptJS's incomprehensive sanitation can lead to Command Injection","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.","published":"2025-09-08T00:00:00Z","modified":"2026-07-15T01:49:07.332598227Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"codeceptjs","fixedVersion":"3.7.5"}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:07.332598227Z"}}