CVE-2025-57285

CRITICAL
Published Sep 8, 2025 Modified Sep 12, 2025 CWE-77

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.

CVSS v3.1 Score

9.8
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness Type (CWE)

CWE-77 CWE-77

Affected Products

Vendor Product
codecept codeceptjs

References

Frequently Asked Questions

What is CVE-2025-57285? +
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. It has a CVSS v3.1 base score of 9.8 (CRITICAL).
How severe is CVE-2025-57285? +
CVE-2025-57285 has a CVSS v3.1 score of 9.8 out of 10, rated CRITICAL. This is a critical vulnerability that should be patched immediately.
What products are affected by CVE-2025-57285? +
CVE-2025-57285 affects products from codecept, specifically: codeceptjs. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-57285? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-57285 — free, no signup required.

Start Free Scan