Vulnerability · Published Aug 13, 2026 · Assigned by GitHub_M

CVE-2026-73566node-tar: Uncontrolled recursion in mapHas/filesFilter allows uncatchable stack-overflow DoS via crafted long-path tar with member selection

High 7.5

In plain English

A high-severity uncontrolled resource consumption in node-tar from isaacs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.5%top 54.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-tarno fix listedDEBIAN-CVE-2026-73566
Debian:13node-tarno fix listedDEBIAN-CVE-2026-73566
Debian:14node-tar7.5.22+~4.0.1-1DEBIAN-CVE-2026-73566
Ubuntu:22.04:LTSnode-tarno fix listedUBUNTU-CVE-2026-73566
Ubuntu:24.04:LTSnode-tarno fix listedUBUNTU-CVE-2026-73566
Ubuntu:26.04:LTSnode-tarno fix listedUBUNTU-CVE-2026-73566
Ubuntu:26.10node-tarno fix listedUBUNTU-CVE-2026-73566
npmtar7.5.21GHSA-r292-9mhp-454m

Affected products (as reported)

VendorProductVersions
isaacs node-tar < 7.5.21

Weakness: CWE-400, CWE-674 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References