CVE-2025-57285: Codecept Codeceptjs
Critical severity, CVSS 9.8. EPSS: 2.2% chance of exploitation in the next 30 days.
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.
Affected products
- Codecept Codeceptjs: version 3.7.3 only
Published 2025-09-08. Last modified 2026-06-17.