CVE-2025-57285

Severity CVSS v4.0:
Pending analysis
Type:
CWE-77 Command Injection
Publication date:
08/09/2025
Last modified:
12/09/2025

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:*