node-tar: Archive framing differential from PAX size still being applied to GNU/PAX meta entries via ReadEntry and related size/precedence inconsistencies
CVE-2026-140236
Summary The GHSA-vmf3 fix (7.5.16, commit 21a8220) stopped Header.decode from applying extended-header values to non-file blocks. ReadEntry, however, still copies the PAX size onto meta entries (GNU long-name/long-link and PAX headers), and the parser uses that value to decide how many bytes belong to the meta entry. node-tar can therefore frame an archive differently from other tar implementations. Three related places in the same code take sizes or precedence from inconsistent sources. Details | # | Issue | Location | Default options | |---|---|---|---| | VULN-001 | ReadEntry applies ex/gex size to meta entries, and the parser uses it to frame the meta body. This is what GHSA-vmf3 meant to prevent, through a different code path | src/read-entry.ts:105-110 → src/parse.ts:241,246 | Yes (x, t, Parser, Unpack, UnpackSync) | | VULN-004 | maxMetaEntrySize is checked against the PAX-overridden entry.size, but the meta buffer accumulates header.size bytes, so the limit can be exceeded | src/parse.ts:241 (check) vs :248 (accumulation) | Yes | | VULN-005 | ReadEntry applies the global header after the local one, so global values override local ones (the reverse of PAX semantics), and it…
Assessment
- CVSS
- 7.2 (v4.0)
- Severity
- High
- EPSS
- 0.00687% 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
- Weakness
- CWE-436
- Assigner
- security-advisories@github.com
CVSS vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
At the source
References
- https://github.com/isaacs/node-tar/security/advisories/GHSA-qv2w-fc3h-pm27
- https://nvd.nist.gov/vuln/detail/CVE-2026-140236
- https://github.com/isaacs/node-tar/commit/f351e5b4a8916bc8c8f821d0ad926a17d26ea237
- https://github.com/isaacs/node-tar/releases/tag/v8.0.0
- https://github.com/advisories/GHSA-qv2w-fc3h-pm27
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
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-140236