CVE-2025-57285

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.

Score
CVSS 3.1 9.8 Critical
Status
Analyzed - cve@mitre.org
Published
2025-09-08
Last modified
2025-09-08
Weaknesses
CWE-77

Affected products

References