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.
Published: 2025-09-08
Score: 9.8 Critical
EPSS: 2.0% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

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

Fri, 12 Sep 2025 20:45:00 +0000

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

Mon, 08 Sep 2025 20:15:00 +0000

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'}


Mon, 08 Sep 2025 17:45:00 +0000

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

Subscriptions

Codecept Codeceptjs
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2025-09-08T19:40:26.439Z

Reserved: 2025-08-17T00:00:00.000Z

Link: CVE-2025-57285

cve-icon Vulnrichment

Updated: 2025-09-08T19:40:14.852Z

cve-icon NVD

Status : Analyzed

Published: 2025-09-08T18:15:34.160

Modified: 2025-09-12T20:37:59.793

Link: CVE-2025-57285

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses