CVE Feed
6.9 Medium

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

CVE-2026-140237

Summary 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. Details The archive uses this sequence: text block 0: local PAX header, physical body size 10 block 1: PAX body containing "10 size=0\n", padded to 512 bytes block 2: second local PAX header, physical body size 512 block 3: second PAX metadata body containing a valid header for hidden.txt blocks 4-5: end-of-archive blocks Header.decode() now checks the raw type flag and correctly refuses to apply pending PAX fields to the second PAX header. Its decoded size is therefore the physical value 512. However, [ReadEntry ](https://github.com/isaacs/node-tar/blob/2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb/src/read-entry.ts#L45-L50) size initializes its body counters from that correct header, then…

Assessment

CVSS
6.9 (v4.0)
Severity
Medium
EPSS
0% chance of exploitation in the next 30 days
Known exploited
Not listed in CISA KEV
Exploit availability
Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
Published
2 December 2026
Last updated
2 December 2026
Affected
isaacs · node-tar · tar
Weakness
CWE-436
Assigner
security-advisories@github.com

CVSS vectorCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

At the source

References

Community proofs of concept

No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.

Submit a proof of concept
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-140237