Isaacs node-tar
node-tar: Symlink target escapes the extraction directory through an in-archive symlink chain
node-tar is a tar archive manipulation library for Node.js. From 7.5.5 until 8.0.0, symlink target escapes the extraction directory through an in-archive symlink chain. An attacker who supplies a tarball can make tar.x() with default options leave symlinks inside the extraction directory that point to any path on the system. tar itself does not write through them, but any later read or write of the extracted files by the application follows them: the demonstration overwrites a file outside the extraction directory and resolves a link to /etc/hostname. This gives arbitrary file read and write as the extracting user. This issue is fixed in version 8.0.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 7.5.5, < 8.0.0
Fixed in 8.0.0
Mitigation
Upgrade node-tar to 8.0.0 or later.
References
- Vendor advisory github.com/isaacs/node-tar/security/advisories…
- Patch github.com/isaacs/node-tar/commit/23b368128b6c…
- Release notes github.com/isaacs/node-tar/releases/tag/v8.0.0
Timeline
Days relative to CVE publicationFirst public PoC 1.2 days after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-140249 (created 2 Dec 2026, found by us: 2 Dec 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-140249 | 2 Dec 2026 +1.2 d | 2 Dec 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.