THREATOPS
THREAT OPS › Threat News › [NVD] CVE-2025-57285 (CRITICAL 9.8) — 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.

[NVD] CVE-2025-57285 (CRITICAL 9.8) — 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.

lownvdPublished 2025-09-08

CVE-2025-57285 CVSS: 9.8 CRITICAL Published: 2025-09-08T18:15:34.160

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.

Indicators of compromise

Original source: https://nvd.nist.gov/vuln/detail/CVE-2025-57285