Back to CVE records
Medium 5.6Published Nov 20, 2025

CVE-2025-13437Arbitrary node_modules Directory Deletion in Google zx

Updated under an hour ago ()

Does this affect you?

It affects Google zx. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
5.6 MEDIUM (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H/E:U
Weakness (CWE)
CWE-706
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Google
NVD analysis
Deferred
Record last updated
Nov 20, 2025
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
Google zx
google:zx (from the name)
8.8.4
CNA record

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.