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.
{
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57285.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "3.7.3"
},
{
"last_affected": "3.7.3"
}
],
"source": "CPE_STRING"
}
]
}