CVE-2025-57285: codeceptjs 3.7.3 contains a command injection
Source CVE Database V5
Not known to be exploited · CVSS 9.8 Critical.
Data as of 26 Oct 2026, 12:55 UTC
- EPSS
- 2.1% chance of exploitation in 30 days – higher than 82% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 8 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
To mitigate this vulnerability, European organizations should immediately audit their use of codeceptjs 3.7.3 or similar versions to identify any invocation of the emptyFolder function or other functions that execute shell commands with user-controlled input. Until an official patch is released, organizations should avoid passing unsanitized or user-controlled directory paths to this function. Implement strict input validation and sanitization to ensure directoryPath parameters do not contain shell metacharacters or command separators. Consider replacing execSync calls with safer alternatives such as Node.js native file system APIs (e.g., fs.rm or fs.rmdir) that do not invoke shell commands. Restrict permissions of CI/CD and build environments to minimize the impact of potential command execution. Monitor logs for suspicious command execution patterns and anomalous activity in developer and test environments. Finally, stay updated with vendor advisories and apply patches promptly once available.
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.