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

CVE-2026-59875: node-tar: Uncaught Exception DoS via NUL byte in PAX path/linkpath records

July 20, 2026

node-tar strips trailing NUL bytes from long-name (L) and long-linkpath (K) GNU extended headers but does not apply the same sanitization to equivalent fields delivered via PAX (x typeflag) extended headers. A PAX record of the form path=visible.txt\x00hidden.txt is parsed verbatim into entry.path and flows into fs.lstat() / fs.open(), which Node.js core rejects with ERR_INVALID_ARG_VALUE. The throw originates inside an FSReqCallback async chain that is not wrapped by the consumer’s await/try-catch around tar.x() — it surfaces as uncaughtException and terminates the process.

This is a remote denial-of-service primitive against any process that extracts attacker-supplied tarballs through tar.x / tar.extract / tar.t / tar.Parser, even when the consumer follows the documented try/catch error-handling pattern.

A secondary parser-differential (CWE-436) exists because tar(1), bsdtar, and Python tarfile truncate the path at the first NUL (yielding visible.txt) while node-tar retains the full string. A validator that pre-scans a tarball with one tool and extracts with the other is bypassed.


References

  • github.com/advisories/GHSA-gvwx-54wh-qm9j
  • github.com/isaacs/node-tar/commit/7a635c29f5edbf083557374d43984273ecfed5b3
  • github.com/isaacs/node-tar/releases/tag/v7.5.17
  • github.com/isaacs/node-tar/security/advisories/GHSA-gvwx-54wh-qm9j
  • nvd.nist.gov/vuln/detail/CVE-2026-59875

Code Behaviors & Features

Detect and mitigate CVE-2026-59875 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.17

Fixed versions

  • 7.5.17

Solution

Upgrade to version 7.5.17 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-248: Uncaught Exception

Source file

npm/tar/CVE-2026-59875.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 08 Aug 2026 00:18:32 +0000.