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.
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

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.