45
CVE-2025-57285
CRITICAL
CVSS 9.8EPSS: 2.2%
Published: 08/09/2025
Modified: 07/11/2026
Exploit Prediction Score (EPSS)2.17% probability of exploitation (82th percentile)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vendor: codecept
Product: codeceptjs
Description
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.
AI Remediation Playbook Pro+
Get step-by-step remediation playbooks with specific commands, verification steps, and rollback procedures.
Upgrade to Pro+AI Attack Path AnalysisPro+
Visualize potential attack chains and lateral movement paths with AI-powered analysis.
AI Risk ForecastingPro+
Predict exploitation likelihood with AI-powered threat intelligence forecasting.
AI Compliance MappingPro+
Map vulnerabilities to compliance frameworks with AI-assisted gap analysis.
Weakness Types (CWE)
MITRE ATT&CK TechniquesThreat Intelligence
How attackers may exploit this vulnerability
Data source: MITRE ATT&CK® Framework —attack.mitre.org
References (2)
https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9
ExploitThird Party Advisory
https://www.npmjs.com
Product
Affected Products (1)
cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:*