{"cve":"CVE-2025-57285","nvd":{"published":"2025-09-08T18:15:34.160","modified":"2026-06-17T09:42:59.690","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-77"],"references":["https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9","https://www.npmjs.com"],"products":["codecept:codeceptjs"],"source":"nvd","synced_at":"2026-10-19T22:08:41.295252406+00:00"},"epss":{"cve":"CVE-2025-57285","score":0.02169,"percentile":0.82272,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-34w8-mcwr-vg29","url":"https://osv.dev/vulnerability/GHSA-34w8-mcwr-vg29","summary":"CodeceptJS's incomprehensive sanitation can lead to Command Injection","modified":"2025-09-23T20:19:25Z","packages":[{"ecosystem":"npm","name":"codeceptjs","purl":"pkg:npm/codeceptjs","ranges":[">=3.5.0 <3.7.5"],"fixed":["3.7.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}