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, b…
- CVSS
- 7.2High
- Chance of exploitation (EPSS)
- 0.94%
- Published
- Dec 1, 2026
- In the news
- 1 story
What to do
A serious path traversal flaw in Isaacs Node-tar that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Isaacs Node-tar
- >= 7.5.5, < 8.0.0
Description
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 products
Get alerts for these →Timeline 11
Latest change: Tenable Cloud Security plugin 499022: Chainguard: gemini-cli: security update to 0.72.0-r1gitlab-rails-ce-19.4: security update to 19.4.11-r5gitlab-rails-ce-19.5: security update to 19.5.9-r5 (Dec 2, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Thu, Dec 3, 2026
- DetectionTenable Cloud Security plugin 499022: Chainguard: gemini-cli: security update to 0.72.0-r1gitlab-rails-ce-19.4: security update to 19.4.11-r5gitlab-rails-ce-19.5: security update to 19.5.9-r5Tenable
- DetectionTenable Container Security plugin 499022: Chainguard: gemini-cli: security update to 0.72.0-r1gitlab-rails-ce-19.4: security update to 19.4.11-r5gitlab-rails-ce-19.5: security update to 19.5.9-r5Tenable
Wed, Dec 2, 2026
- Researchtar: node-tar: Symlink containment bypass via nested symlink + '..' (lexical linkpath check)GitHub Advisories · 01:10 UTC
- Researchtar: node-tar: Symlink linkpath containment bypass via entry paths ending in '/.'GitHub Advisories · 01:09 UTC
- Researchtar: node-tar: Symlink linkpath escape check is lexical: '..' after an in-archive symlink creates symlinks outside the extraction directoryGitHub Advisories · 01:01 UTC
- Researchtar: node-tar: Nested symlink target can escape node-tar extraction rootGitHub Advisories · 00:58 UTC
- Researchtar: node-tar: Symlink target escapes the extraction directory through an in-archive symlink chainGitHub Advisories · 00:57 UTC
- Researchtar: node-tar: Symlink containment bypass via chained symlinks lets tar.x() create links that resolve outside the extraction directory (regression since 7.5.5)GitHub Advisories · 00:54 UTC
- DetectionTenable Cloud Security plugin 489531: SCA: security update for tar (GHSA-4pf9-5fpx-xmr6)Tenable
- DetectionTenable Container Security plugin 489531: SCA: security update for tar (GHSA-4pf9-5fpx-xmr6)Tenable
Tue, Dec 1, 2026
- CVECVE-2026-140249 published (CVSS 7.2)CVE Program · 17:58 UTC
References 3
- github.com /isaacs/node-tar/security/advisories/GHSA-4pf9-5fpx-xmr6
- github.com /isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d
- github.com /isaacs/node-tar/releases/tag/v8.0.0