Interpretation Conflict Affecting tar package, versions >=7.5.22 <8.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.82% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-TAR-23314575
  • published2 Dec 2026
  • disclosed1 Dec 2026
  • creditmikkel32

Introduced: 1 Dec 2026

NewCVE-2026-140233  (opens in a new tab)
CWE-436  (opens in a new tab)

How to fix?

Upgrade tar to version 8.0.0 or higher.

Overview

tar is a full-featured Tar for Node.js.

Affected versions of this package are vulnerable to Interpretation Conflict via conflicting local and global PAX size fields during @archive repacking. When an application uses create() with an @archive source to repack attacker-controlled tar input and applies an entry filter, a crafted archive can set a local PAX size of 512 and a global PAX size of 0 on the same entry. ReadEntry.size ends up at 0 while the body stream still carries 512 bytes, so WriteEntryTar writes a header with size=0 but pipes the full 512-byte body after it. A parser of the repacked output treats those body bytes as a second tar header, producing an additional archive member that the filter never inspected and could not reject.

CVSS Base Scores

version 4.0
version 3.1