CVE-2025-57285: CodeceptJS's incomprehensive sanitation can lead to Command Injection
(updated )
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.
References
Code Behaviors & Features
Detect and mitigate CVE-2025-57285 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →