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.
Published:Sep 8, 2025
Last Modified:Sep 12, 2025
EPS:Sep 8, 2025
EPSS Score:0.00961
CVSS Score:9.8
Affected Products
Vendor
Product
Action
Vendor
Codecept
Product
Codeceptjs
Codecept
Codeceptjs
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
