CVE-2025-13437 json
Arbitrary node_modules Directory Deletion in Google zx
published 2025-11-20 11 mo ago modified 2026-10-18 21 d ago also GHSA-w87r-vg9q-crqm , EUVD-2025-198297
- cvss
- 5.6
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 0%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm zx 8.8.5
- github.com/google/zx@9ef6d3c commit
- github.com/google/zx@a4d1bc2 commit
- github.com/google/zx#1349 pull request
- github.com/google/zx#1355 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-13437 updated cvss 6.1
zx: Arbitrary node_modules Directory Deletion in Google zx
-
Red Hat OpenShift Container Platform 4 openshift4/ose-agent-installer-ui-rhel9affected: workaround, no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 11 mo ago
Exploit prediction
0.09% chance of exploitation in the next 30 days, higher than 0% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 5.6 | 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 |
| CNA | 4.0 | 5.6 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | zx | <8.8.5 |
8.8.5 |
Affected products
- Google zx
Classification
- Weakness
-
- CWE-706 Use of Incorrectly-Resolved Name or Reference
References
-
github.com
/google/zx/pull/1349
web
-
github.com
/google/zx/pull/1355
web
-
github.com
/google/zx/commit/9ef6d3c9962c4ba01e3fb8075855570c192b4681
web
-
github.com
/google/zx/commit/a4d1bc2467f305f1c91d62506e215f307dc1fbeb
web
-
github.com
/google/zx/issues/1348
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-13437
advisory
-
github.com
/google/zx
package
Sources
- CVE List CVE-2025-13437
- GitHub Advisory GHSA-w87r-vg9q-crqm
- NVD CVE-2025-13437
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.