CVE-2026-31802CWE-22

node-tar Symlink Path Traversal via Drive-Relative Linkpath

High · published March 9, 2026

CVSS v4.0
8.2
EPSS
0%
Percentile
8.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.2 · HIGH
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
EPSS
0.00190 · 8.2th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-03-09T21:11Z
EPSS history
Timeline
  • 09 MAR 21:11Z
    node-tar Symlink Path Traversal via Drive-Relative Linkpath
    cvelistv5