CVE-2025-13437CWE-706

CVE-2025-13437

published November 20, 2025

CVSS
5.6
EPSS
0%
Percentile
0.4
In the wild
Unconfirmed
What it is

When zx is invoked with --prefer-local=<path>, the CLI creates a symlink named ./node_modules pointing to <path>/node_modules. Due to a logic error in src/cli.ts (linkNodeModules / cleanup), the function returns the target path instead of the alias (symlink path). The later cleanup routine removes what it received, which deletes the target directory itself. Result: zx can delete an external <path>/node_modules outside the current working directory.

The record
Technical detail
CVSS
5.6 · NONE
CVSS v4.0
Not supplied
EPSS
0.00091 · 0.4th percentile
Weakness
CWE-706 · Use of Incorrectly-Resolved Name or Reference
Published
2025-11-20T22:15Z
References (1)
EPSS history
Timeline
  • 20 NOV 16:25Z
    Arbitrary node_modules Directory Deletion in Google zx
    cvelistv5