CVE-2026-29786 node-tar: Hardlink Path Traversal via Drive-Relative Linkpath
Attackers can overwrite files outside the extraction directory by crafting tar archives with drive-relative hardlink targets in node-tar.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-29786?
CVE-2026-29786 is a high-severity path traversal vulnerability in isaacs node-tar, published on 7 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
node-tar is a full-featured Tar for Node.js. Prior to version 7.5.10, tar can be tricked into creating a hardlink that points outside the extraction directory by using a drive-relative link target such as C:../target.txt, which enables file overwrite outside cwd during normal tar.x() extraction. This issue has been patched in version 7.5.10.
Which versions are affected by CVE-2026-29786?
2 open source packages ship an affected version, including tar. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
tar npm | All versions | 7.5.10 |
tar npm | All versions | 7.5.10 |
Products include Isaacs Tar.
How do I fix CVE-2026-29786?
Upgrade tar to 7.5.10 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-29786 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-29786 exists.
Public exploit code: 2 proofs of concept on GitHub.
Other vulnerabilities in isaacs node-tar
- CVE-2026-59873 node-tar: Decompression/parse DoS via unlimited input
- CVE-2026-23950 node-tar has Race Condition in Path Reservations via Unicode Ligature Collisions on macOS APFS
- CVE-2026-59874 node-tar: Negative tar entry size causes infinite loop in archive replace
- CVE-2026-31802 node-tar Symlink Path Traversal via Drive-Relative Linkpath
- CVE-2026-24842 node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal
Sources
Also known as AZL-101772, AZL-79553, AZL-79556, CLEANSTART-2026-VD64269, CLEANSTART-2026-WV30852, CLSA-2026-1787146736 and 31 more.