{"cve":"CVE-2025-13437","nvd":{"published":"2025-11-20T17:15:49.453","modified":"2026-10-18T20:10:00.110","status":"Deferred","description":"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_v4":{"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","score":5.6},"cvss_v3":null,"cwes":["CWE-706"],"references":["https://github.com/google/zx/issues/1348"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:16:02.354564667+00:00"},"epss":{"cve":"CVE-2025-13437","score":0.00091,"percentile":0.00455,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-w87r-vg9q-crqm","url":"https://osv.dev/vulnerability/GHSA-w87r-vg9q-crqm","summary":"zx Uses Incorrectly-Resolved Name or Reference","modified":"2025-11-21T18:44:00.001863Z","packages":[{"ecosystem":"npm","name":"zx","purl":"pkg:npm/zx","ranges":["<8.8.5"],"fixed":["8.8.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}