CVE-2025-57285

published 8 Sep 2025 · updated 7 Nov 2026

codeceptjs 3.7.3 contains a command injection vulnerability in the emptyFolder function (lib/utils.js)

10.0CriticalCVSS 9.8EPSS 2%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
codeceptcodeceptjs=3.7.3

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-57285 severity on Zeptric[![CVE-2025-57285](https://zeptric.io/badge/cve/CVE-2025-57285.svg)](https://zeptric.io/cve/CVE-2025-57285)