{"id":"CVE-2025-13437","revision":"5bd988d0778646aeb054d689bb142b9e","records":[{"revision":"5bd988d0778646aeb054d689bb142b9e","observedAt":"2026-10-25T01:17:29.167+00:00","statement":{"source":"nvd","id":"CVE-2025-13437","aliases":[],"title":"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 t…","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.","state":0,"publishedAt":"2025-11-20T17:15:49.453+00:00","modifiedAt":"2026-10-18T20:10:00.11+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · cve-coordination@google.com · Secondary","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","score":5.6,"severity":"MEDIUM"}],"references":["https://github.com/google/zx/issues/1348"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-13437","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-706"],"productCriteria":[],"sourceDates":{"published":"2025-11-20T17:15:49.453","lastModified":"2026-10-18T20:10:00.110"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2025-13437","identifiers":["CVE-2025-13437"]},"retained":false,"historicalAffected":[]}],"coverage":[]}