CVE-2026-31802 PUBLISHED

node-tar Symlink Path Traversal via Drive-Relative Linkpath

Assigner: GitHub_M
Reserved: 09.03.2026 Published: 09.03.2026 Updated: 09.03.2026

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.

Metrics

CVSS 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
CVSS Score: 8.2

Product Status

Vendor isaacs
Product node-tar
Versions
  • Version < 7.5.11 is affected

References

Problem Types

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE