node-tar: Global PAX extended header injects attacker-controlled linkpath into tar.Parser entries, bypassing
Affects tarSource GCVE Database
Not known to be exploited · CVSS 7.2 High : upgrade to 8.0.0 soon.
Data as of 2 Dec 2026, 02:48 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 7.2 |
|---|
- Patch
- Available – fixed in 8.0.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/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 fix is available in node-tar version 8.0.0. Users should upgrade to version 8.0.0 or later to resolve this issue. Applications that consume tar.Parser or tar.list() directly and use entry.linkpath should implement additional validation or avoid trusting entry.linkpath values from untrusted archives. The vendor advisory confirms the patch and no other mitigation is required.
Description
A vulnerability in the node-tar package (versions prior to 8.0.0) allows a crafted tar archive with a Global Extended Header containing a 'linkpath' field to inject attacker-controlled linkpath values into every entry parsed by tar.Parser. This occurs without warnings even under strict mode. While the tar extraction methods tar.x() and tar.extract() are not vulnerable due to additional path traversal guards, direct consumers of tar.Parser or tar.list() that trust entry.linkpath without validation can be tricked into reading or writing files outside the intended directory.
References
- github.com/isaacs/node-tar/security/advisories/GHSA-ffhw-4r4q-5cwv (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-140239 (opens in a new tab)
- github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237 (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)