CVE-2026-29786 PUBLISHED

node-tar: Hardlink Path Traversal via Drive-Relative Linkpath

Assigner: GitHub_M
Reserved: 04.03.2026 Published: 07.03.2026 Updated: 07.03.2026

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

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L
CVSS Score: 8.2

Product Status

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

References

Problem Types

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE
  • CWE-59: Improper Link Resolution Before File Access ('Link Following') CWE