{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-13437","id":"CVE-2025-13437","title":"Arbitrary node_modules Directory Deletion in Google zx","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>","descriptionLong":"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","updated":"2026-10-28T02:31:02.661947995Z","reserved":"2025-11-19T19:03:28.234Z","status":"Deferred","rejected":false,"assigner":"Google","metric":{"version":"4.0","score":5.6,"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","rating":"medium","source":"Google"},"metrics":[{"version":"4.0","score":5.6,"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","rating":"medium","source":"Google"},{"version":"4.0","score":5.6,"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","rating":"medium","source":"google.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"}],"rating":"medium","products":["Google zx"],"affectedProducts":[{"vendor":"Google","product":"zx","defaultStatus":"unaffected","versions":[{"status":"affected","version":"8.8.4","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"zx","purl":"pkg:npm/zx","ranges":["<8.8.5"],"fixed":["8.8.5"],"advisory":"GHSA-w87r-vg9q-crqm"}],"cwes":["CWE-706"],"aliases":["GHSA-w87r-vg9q-crqm"],"references":[{"url":"https://github.com/google/zx/issues/1348","tags":["report","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/13xxx/CVE-2025-13437.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-13437","tags":["advisory"]},{"url":"https://github.com/google/zx","tags":["package"]},{"url":"https://github.com/google/zx/pull/1349","tags":["web"]},{"url":"https://github.com/google/zx/pull/1355","tags":["web"]},{"url":"https://github.com/google/zx/commit/9ef6d3c9962c4ba01e3fb8075855570c192b4681","tags":["web"]},{"url":"https://github.com/google/zx/commit/a4d1bc2467f305f1c91d62506e215f307dc1fbeb","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00091,"epssPercentile":0.0047,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-13437","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-13437","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-13437","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w87r-vg9q-crqm","ok":true,"note":"GHSA-w87r-vg9q-crqm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-13437","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}