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

CVE-2026-140237: node-tar: ReadEntry pending PAX size reapplication permits metadata-body file smuggling

December 2, 2026

A crafted tar archive containing consecutive PAX headers can make node-tar interpret a block inside a PAX metadata body as a real filesystem entry. Under default options, both tar.list() and tar.extract() expose the hidden entry, and extraction can truncate an existing file inside the destination directory.

The issue remains in tar@7.5.22 and current commit 2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb. It is a residual path around the PAX intermediary-entry fix released in 7.5.16.

References

  • github.com/advisories/GHSA-p96f-8xj2-g85p
  • github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237
  • github.com/isaacs/node-tar/releases/tag/v8.0.0
  • github.com/isaacs/node-tar/security/advisories/GHSA-p96f-8xj2-g85p
  • nvd.nist.gov/vuln/detail/CVE-2026-140237

Code Behaviors & Features

Detect and mitigate CVE-2026-140237 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 starting from 7.0.0 before 8.0.0

Fixed versions

  • 8.0.0

Solution

Upgrade to version 8.0.0 or above.

Impact 6.2 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-436: Interpretation Conflict

Source file

npm/tar/CVE-2026-140237.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 02 Dec 2026 12:15:34 +0000.