Live threats

All CVEs / Codecept

CVE-2025-57285Codeceptjs

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
Sep 8, 2025
Updated
Nov 7, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-77
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Codeceptjs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm codeceptjs ≥ 3.5.0 < 3.7.5 3.7.5 npm install codeceptjs@3.7.5

Per OSV / GitHub Advisories (GHSA-34w8-mcwr-vg29). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
codeceptcodeceptjs3.7.3

Official sources

References

Links published by the sources. Open them with care.