Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. tar
  4. ›
  5. CVE-2026-29786

CVE-2026-29786: tar has Hardlink Path Traversal via Drive-Relative Linkpath

March 5, 2026 (updated March 9, 2026)

tar (npm) 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.

References

  • github.com/advisories/GHSA-qffp-2rhf-9h96
  • github.com/isaacs/node-tar
  • github.com/isaacs/node-tar/commit/7bc755dd85e623c0279e08eb3784909e6d7e4b9f
  • github.com/isaacs/node-tar/security/advisories/GHSA-qffp-2rhf-9h96
  • nvd.nist.gov/vuln/detail/CVE-2026-29786

Code Behaviors & Features

Detect and mitigate CVE-2026-29786 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 7.5.10

Fixed versions

  • 7.5.10

Solution

Upgrade to version 7.5.10 or above.

Impact 7.1 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:L

Learn more about CVSS

Weakness

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

Source file

npm/tar/CVE-2026-29786.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:42 +0000.