{"id":"CVE-2025-13437","aliases":["GHSA-w87r-vg9q-crqm"],"url":"https://o3.security/vulnerability/CVE-2025-13437","summary":"Arbitrary node_modules Directory Deletion in Google zx","details":"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.","published":"2025-11-20T16:25:16.866Z","modified":"2026-08-12T03:51:47.692192770Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"zx","fixedVersion":"8.8.5"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/13xxx/CVE-2025-13437.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-13437"},{"type":"REPORT","url":"https://github.com/google/zx/issues/1348"},{"type":"PACKAGE","url":"https://github.com/google/zx"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:47.692192770Z"}}