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

CVE-2026-59871: node-tar: Process crash via PAX numeric path type confusion

July 20, 2026

A crafted 2.5KB tar archive crashes any Node.js process that extracts it. The PAX header parser coerces all-digit path values to JavaScript numbers, which causes an uncaught TypeError when downstream code calls .split('/') on the numeric value. Error handlers and strict: false cannot intercept the crash.

References

  • github.com/advisories/GHSA-w8wr-v893-vjvp
  • github.com/isaacs/node-tar/commit/e02a4e9e013c4be95302e2eb2047a942b883c27b
  • github.com/isaacs/node-tar/releases/tag/v7.5.18
  • github.com/isaacs/node-tar/security/advisories/GHSA-w8wr-v893-vjvp
  • nvd.nist.gov/vuln/detail/CVE-2026-59871

Code Behaviors & Features

Detect and mitigate CVE-2026-59871 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.18

Fixed versions

  • 7.5.18

Solution

Upgrade to version 7.5.18 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-704: Incorrect Type Conversion or Cast

Source file

npm/tar/CVE-2026-59871.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:56 +0000.