{"id":"CVE-2026-73566","published":"2026-08-13T17:39:05Z","modified":"2026-08-21T19:08:31Z","title":"node-tar: Uncontrolled recursion in mapHas/filesFilter allows uncatchable stack-overflow DoS via crafted long-path tar…","vendor":"isaacs","product":"node-tar","tier":"tail","description":{"text":"node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.21, node-tar's filesFilter in src/list.ts uses the recursive mapHas helper to walk an archive entry path upward with path.dirname() and no segment cap when tar.t(...) or tar.x(...) receives a non-empty member-selection list. A crafted GNU L or PAX x long-path header with thousands of slash-separated segments reaches this.filter(entry.path, entry) in Parser[CONSUMEHEADER] in src/parse.ts before Unpack[CHECKPATH] applies maxDepth, causing an uncatchable RangeError stack overflow that terminates asynchronous and streaming Node.js consumers. This issue is fixed in version 7.5.21.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00527,"percentile":0.38046,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/isaacs/node-tar/security/advisories/GHSA-r292-9mhp-454m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/isaacs/node-tar/commit/631ae59121bf8fc8a22bbae35f074cb9b789cd4a","tags":["x_refsource_MISC"]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":7.61},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"isaacs","affectedVersions":[{"vendor":"isaacs","product":"node-tar","versions":["< 7.5.21"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-18T01:27:38.757239Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tar","vulnerableRanges":["<7.5.21"],"patched":["7.5.21"],"from":["GHSA-r292-9mhp-454m"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-58181","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-isaacs-node-tar-cve-2025-64118","parents":[{"from":"CVE-2025-64118","to":"CVE-2026-73566","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/list.ts"],"commits":["https://github.com/isaacs/node-tar/commit/5330eb04bc43014f216e5c271b40d5c00d45224d","https://github.com/isaacs/node-tar/commit/5e1a8e638600d3c3a2969b4de6a6ec44fa8d74c9","https://github.com/isaacs/node-tar/commit/631ae59121bf8fc8a22bbae35f074cb9b789cd4a"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-59871","published":"2026-07-08","fixed":"7.5.18","kev":false},{"cve":"CVE-2026-59874","published":"2026-07-08","fixed":"7.5.18","kev":false},{"cve":"CVE-2026-59873","published":"2026-07-08","fixed":"7.5.19","kev":false,"link":{"from":"CVE-2026-59873","to":"CVE-2026-73566","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tar","fromFixed":"7.5.19","toFixed":"7.5.21","daysApart":36}]}},{"cve":"CVE-2026-73566","published":"2026-08-13","fixed":"7.5.21","kev":false}],"package":"npm:tar"}}