CVE Catalog

CVE-2025-57285

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

High risk
2.17%

82th percentile - higher than 82% of all known CVEs

Summary

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.

Risk Assessment

An attacker could execute arbitrary system commands with the privileges of the process, potentially leading to full system compromise.

Recommendation

Update codeceptjs to a patched version and avoid passing untrusted data to the emptyFolder function.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS