p PatchFirst

CVE-2025-57285

CVE-2025-57285

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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 9.8 · Critical · EPSS 2.2% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • n/a

    Versions
    • n/a: Affected

    No fix published

  • codeceptjs npm

    Affected ranges
    • SEMVER: ≥ 3.5.0, < 3.7.5

    Update to 3.7.5

Original sources

Check your server →