cve.bz

CVE-2025-57285

9.8 criticalEPSS 2.2%

Critical (9.8) in codecept codeceptjs. EPSS 2.2% chance of exploitation in the next 30 days. Fixed in codeceptjs 3.7.5.

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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.2% chance of exploitation in the next 30 days; higher than 82% of CVEs (scores of 2026-10-31)
CWE
CWE-77
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-34w8-mcwr-vg29npmcodeceptjs>=3.5.0 <3.7.53.7.5

References

Check your stackJSON