codeceptjs 3.7.3 contains a command injection vulnerability in the emptyFolder function…
Priority HIGH 82CWE-77Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-77.
Summary
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.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.02169 82nd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed codeceptjs (npm): 3.7.5
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | codeceptjs (npm) | 3.5.0 to before 3.7.5 | 3.7.5 | Patch available | GHSA-34w8-mcwr-vg29 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- codeceptjs (npm) Vendor— Affected 3.5.0 to before 3.7.5 Fixed in 3.7.5 Patch available GHSA-34w8-mcwr-vg29
Remediation
- Fix · GHSA-34w8-mcwr-vg29 codeceptjs (npm) Fixed in 3.7.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-57285
- 2026-10-03 Alias added: GHSA-34w8-mcwr-vg29
References
Sources
- CVE-2025-57285 · CVE Program
- CVE-2025-57285 · NVD
- FIRST EPSS
- GHSA-34w8-mcwr-vg29 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences