CVE-2026-140244: node-tar · Symlink containment bypass via nested symlink + '..' (lexical linkpath check)
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:49 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 this version or later to ensure symlink targets are properly validated by resolving symlinks on the filesystem before containment checks. The suggested fix involves walking symlink components with lstat or using realpath to prevent '..' components from escaping the extraction root. Until upgraded, users should avoid extracting untrusted tar archives with vulnerable node-tar versions.
Description
node-tar versions prior to 8.0.0 contain a vulnerability in their symlink target containment check. The check is lexical and does not resolve symlinks on the filesystem, allowing crafted nested symlinks with '..' components to bypass containment and point outside the extraction directory. This can lead to arbitrary file reads if downstream processes follow these symlinks. The issue was fixed in version 8.0.0.
References
- github.com/isaacs/node-tar/security/advisories/GHSA-mhqm-9wj8-w7r4 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-140244 (opens in a new tab)
- github.com/isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d (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)