codeceptjs
Affected
- introduced
3.5.0, fixed3.7.5(semver)
Fixed versions
3.7.5
Fix
- Fixed version
3.7.5npm install [email protected]
Advisory
Also known as: CVE-2025-57285
CodeceptJS's incomprehensive sanitation can lead to Command Injection
CodeceptJS versions 3.5.0 through 3.7.5-beta.18 contain 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.
Critical Basis: The source's own band: CRITICAL
3.5.0, fixed 3.7.5 (semver)3.7.5
3.7.5npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0