Read the docs
TI-2025-35497 Aliases CVE-2025-57285GHSA-34w8-mcwr-vg29

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

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—codeceptjs (npm)3.5.0 to before 3.7.53.7.5Patch availableGHSA-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

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:*3.7.3VulnerableCodecept
  • cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:* Versions 3.7.3 Vulnerable ·Codecept

Remediation

  • Fix · GHSA-34w8-mcwr-vg29 codeceptjs (npm) Fixed in 3.7.5 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-57285
  2. 2026-10-03 Alias added: GHSA-34w8-mcwr-vg29

References

Sources