{"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 versions 3.5.0 through 3.7.5-beta.18 contain 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-08-12T03:51:48.639309885Z","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":{"url":"https://github.com/codeceptjs/CodeceptJS/pull/3604","label":"codeceptjs/CodeceptJS#3604"},"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"},{"type":"WEB","url":"https://github.com/codeceptjs/CodeceptJS/pull/3604"},{"type":"WEB","url":"https://github.com/codeceptjs/CodeceptJS/pull/5190"},{"type":"PACKAGE","url":"https://github.com/codeceptjs/CodeceptJS"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:48.639309885Z"}}