Live threats

All CVEs / Google

CVE-2025-13437Google zx

Medium 5.6

Priority
34
CVSS 4.0
5.6
EPSS
0.1%
probability of exploitation in 30 days · percentile 1
Auth required
Yes
Published
Nov 20, 2025
Updated
Oct 18, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-706
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for zx.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm zx < 8.8.5 8.8.5 npm install zx@8.8.5

Per OSV / GitHub Advisories (GHSA-w87r-vg9q-crqm). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.