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.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:*

History

No history.

Information

Published : 2025-09-08 18:15

Updated : 2025-09-12 20:37


NVD link : CVE-2025-57285

Mitre link : CVE-2025-57285

CVE.ORG link : CVE-2025-57285


JSON object : View

Products Affected

codecept

  • codeceptjs
CWE
CWE-77

Improper Neutralization of Special Elements used in a Command ('Command Injection')