node-tar crashes the process with an uncaught exception on a 4-byte zstd magic header when the Node runtime lacks
Affects tarSource GCVE Database
Not known to be exploited · CVSS 7.1 High : upgrade to 8.0.0 soon.
Data as of 2 Dec 2026, 02:49 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 7.1 |
|---|
- Patch
- Available – fixed in 8.0.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.
What to do
Upgrade tar to 8.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmtar | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in node-tar version 8.0.0 that fixes this issue. Users should upgrade to node-tar 8.0.0 or later. Additionally, running on Node.js versions 22.15.0, 23.8.0, 24.0.0 or later mitigates the issue because these versions include native zlib zstd bindings that handle the decompression error properly. No other mitigation is required as the vulnerability is fixed in these versions.
Description
A denial of service vulnerability in node-tar versions >=7.5.22 and <8.0.0 allows an unauthenticated attacker to crash any Node.js process that lists or extracts a crafted 4-byte file containing a zstd magic header using the asynchronous file API. This occurs on Node.js runtimes without native zlib zstd support (Node 18.x, 20.x, 21.x, 22.0-22.14, 23.0-23.7). The crash is due to an uncaught TypeError thrown synchronously inside a stream data callback, which kills the process. The issue is fixed in node-tar 8.0.0 and in Node.js versions 22.15.0, 23.8.0, and later where zlib includes native zstd bindings.
References
- github.com/isaacs/node-tar/security/advisories/GHSA-72fp-85cc-g945 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-140241 (opens in a new tab)
- github.com/isaacs/node-tar/commit/73b352e0010d6c99794ea7374800816a46d3bdb2 (opens in a new tab)
- github.com/isaacs/node-tar (opens in a new tab)
- github.com/isaacs/node-tar/releases/tag/v8.0.0 (opens in a new tab)