CVE-2025-57285

Critical

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.

SeverityCritical
CVSS9.8
Exploit probability—
ProductCodeceptjs
PublishedSep 8, 2025
First seenSep 8, 2025

How to fix

Update
  • codeceptjs3.7.5 or later

Affected products

ProductAffected versionsFixed in
codecept codeceptjs3.7.3—
codeceptjsnpm3.5.0 ≤ v < 3.7.53.7.5

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.