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

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

March 10, 2026

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.

References

  • github.com/advisories/GHSA-9ppj-qmqm-q256
  • github.com/isaacs/node-tar
  • github.com/isaacs/node-tar/commit/f48b5fa3b7985ddab96dc0f2125a4ffc9911b6ad
  • github.com/isaacs/node-tar/security/advisories/GHSA-9ppj-qmqm-q256
  • nvd.nist.gov/vuln/detail/CVE-2026-31802

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 7.5.11

Fixed versions

  • 7.5.11

Solution

Upgrade to version 7.5.11 or above.

Impact 7.1 HIGH

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

Learn more about CVSS

Weakness

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

Source file

npm/tar/CVE-2026-31802.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 25 Mar 2026 12:17:43 +0000.