8.2High

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

isaacs node-tar Published: (8 months ago)

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.

Weakness (CWE): CWE-22

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
isaacs node-tar < 7.5.11
isaacs tar < 7.5.11

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:isaacs:tar:*:*:*:*:*:node.js:*:* < 7.5.11