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

12 Sep 2025, 20:37

Type Values Removed Values Added
CPE cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:*
References () https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9 - () https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9 - Third Party Advisory, Exploit
References () https://www.npmjs.com - () https://www.npmjs.com - Product
First Time Codecept
Codecept codeceptjs

08 Sep 2025, 20:15

Type Values Removed Values Added
CWE CWE-77
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8

08 Sep 2025, 18:15

Type Values Removed Values Added
New CVE

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')