Skip to main content
CVE-2026-140235VulnerabilityPublished

node-tar parses PAX extended headers by newline-splitting instead of length-delimiting, causing record dropping and

Affects tarSource GCVE Database

0
Compare
Authoritative record:CVE-2026-140235· High 7.2

Not known to be exploited · CVSS 7.2 High : upgrade to 8.0.0 soon.

Data as of 2 Dec 2026, 02:48 UTC

CVSS 4.0 base score
7.2High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.07.2
Patch
Available – fixed in 8.0.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.

What to do

Upgrade tar to 8.0.0.

Affected software

ProductAffectedFixed in
npmtarAffected
  • >=7.5.0 <8.0.0
Fixed in
  • 8.0.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in node-tar version 8.0.0. Users should upgrade to this version or later to resolve the parsing flaw. Until upgrading, users should avoid extracting untrusted archives with node-tar versions 7.5.0 through 7.99.x, especially if those archives may contain filenames with newlines or crafted PAX headers. No other vendor advisory mitigation is indicated.

Description

node-tar versions 7.5.0 through 7.99.x incorrectly parse POSIX PAX extended headers by splitting on newlines instead of correctly consuming length-delimited records. This causes legitimate records containing newlines to be dropped and attacker-controlled forged records to be injected, allowing arbitrary manipulation of file attributes such as path, size, linkpath, mode, uid, gid, and mtime. This divergence from standard implementations like GNU tar and Python tarfile leads to integrity issues during archive extraction or listing. The issue is fixed in node-tar 8.0.0.

References

Community reviews

Loading reviews…