Vulnerability · Published Mar 9, 2026 · Assigned by GitHub_M

CVE-2026-31802node-tar Symlink Path Traversal via Drive-Relative Linkpath

High 8.2

In plain English

A high-severity path traversal in node-tar from isaacs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.2High
Exploit odds (30 days)0.3%top 78.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

node-tar is a full-featured Tar for Node.js. Prior to version 7.5.11, tar (npm) can be tricked into creating a symlink that points outside the extraction directory by using a drive-relative symlink target such as C:../../../target.txt, which enables file overwrite outside cwd during normal tar.x() extraction. This vulnerability is fixed in 7.5.11.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:14node-tar6.2.1+ds1+~cs6.1.13-10DEBIAN-CVE-2026-31802
Ubuntu:22.04:LTSnode-tarno fix listedUBUNTU-CVE-2026-31802
Ubuntu:24.04:LTSnode-tarno fix listedUBUNTU-CVE-2026-31802
Ubuntu:25.10node-tarno fix listedUBUNTU-CVE-2026-31802
Ubuntu:26.04:LTSnode-tarno fix listedUBUNTU-CVE-2026-31802
Ubuntu:26.10node-tarno fix listedUBUNTU-CVE-2026-31802
npmtar7.5.11GHSA-9ppj-qmqm-q256

Affected products (as reported)

VendorProductVersions
isaacs node-tar < 7.5.11

Weakness: CWE-22 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N

References