Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-57285
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 03:17 UTC · Revision 1
Source evidence
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.
osv:CVE-2025-57285
Complete source record
{
"id": "1a950f7eed9b7d48aba56c9b0434112a1c49df38cf3e4a7e861a7987fc7d29c6",
"url": "https://osv.dev/vulnerability/CVE-2025-57285",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2025-57285",
"summary": "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.",
"evidence": "osv:CVE-2025-57285",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2025-57285",
"aliases": [
"CVE-2025-57285",
"GHSA-34w8-mcwr-vg29"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/codeceptjs/codeceptjs",
"type": "GIT",
"events": [
{
"introduced": "233838e779942d8065117c9d0d71edaf7b92b64a"
},
{
"last_affected": "233838e779942d8065117c9d0d71edaf7b92b64a"
}
],
"database_specific": {
"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"
}
]
}
}
],
"versions": [
"3.7.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-57285.json"
}
}
],
"modified": "2026-10-28T02:30:49.321806844Z",
"provider": "osv",
"references": [
"https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9",
"https://www.npmjs.com",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57285.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-57285"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57285.json"
}
},
"related_cves": [
{
"value": "CVE-2025-57285",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 517685,
"published_at": "2025-09-08T00:00:00+00:00"
}