From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a p…
- CVSS
- 7.2High
- Chance of exploitation (EPSS)
- 0.92%
- Published
- Dec 1, 2026
- In the news
- 1 story
What to do
A serious security 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.22, < 8.0.0
Description
node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.
Affected products
Get alerts for these →Timeline 11
Latest change: Tenable Container Security plugin 498992: Chainguard: gemini-cli: security update to 0.72.0-r1 (Dec 2, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Thu, Dec 3, 2026
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 489536: SCA: security update for tar (GHSA-6wwr-g865-f46r)Tenable
- DetectionTenable Container Security plugin 489536: SCA: security update for tar (GHSA-6wwr-g865-f46r)Tenable
Tue, Dec 1, 2026
- CVECVE-2026-140248 published (CVSS 7.2)CVE Program · 18:17 UTC
References 4
- github.com /isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d
- github.com /isaacs/node-tar/releases/tag/v8.0.0
- github.com /isaacs/node-tar/security/advisories/GHSA-6wwr-g865-f46r
- github.com /isaacs/node-tar/security/advisories/GHSA-6wwr-g865-f46r