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
                    | Link | Resource | 
|---|---|
| https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9 | Third Party Advisory Exploit | 
| https://www.npmjs.com | Product | 
Configurations
                    History
                    12 Sep 2025, 20:37
| Type | Values Removed | Values Added | 
|---|---|---|
| First Time | 
        
        Codecept
         Codecept codeceptjs  | 
|
| References | () https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9 - Third Party Advisory, Exploit | |
| References | () https://www.npmjs.com - Product | |
| CPE | cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:* | 
08 Sep 2025, 20:15
| Type | Values Removed | Values Added | 
|---|---|---|
| CVSS | 
        v2 :  v3 :  | 
    
        v2 : unknown
         v3 : 9.8  | 
| CWE | CWE-77 | 
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')
