CVE-2025-57285
CodeceptJS's incomprehensive sanitation can lead to Command Injection
9.8
CRITICAL
CVSS 3.1
EPSS 3.3%
Description
CodeceptJS versions 3.5.0 through 3.7.5-beta.18 contain 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.
How to fix CVE-2025-57285
To remediate CVE-2025-57285, upgrade the affected package to a fixed version below.
- —upgrade to 3.7.5 or later
Is CVE-2025-57285 being exploited?
Low — EPSS is 3.3%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- >= 3.5.0, < 3.7.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |