CVE-2025-57285

Published Sep 8, 2025 CVSS 3.1 · 9.8 Critical EPSS 2.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-27152 CodeceptJS's incomprehensive sanitation can lead to Command Injection
Github GHSA Github GHSA GHSA-34w8-mcwr-vg29 CodeceptJS's incomprehensive sanitation can lead to Command Injection
History
Type Values Removed Values Added
First Time appeared Codecept
Codecept codeceptjs
CPEs cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:*
Vendors & Products Codecept
Codecept codeceptjs
Type Values Removed Values Added
Weaknesses CWE-77
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 8, 2025, 7:40 PM
Reserved
Aug 17, 2025, 12:00 AM
Status
Analyzed
Published
Sep 8, 2025, 6:15 PM
Modified
Nov 7, 2026, 6:10 PM