CVE-2026-140236: node-tar: Archive framing differential: PAX `size` is still applied to GNU/PAX meta entries via `ReadEntry`, and related size/precedence inconsistencies
node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, ReadEntry still applies PAX size values to GNU and PAX metadata entries, causing node-tar to frame archive bodies differently from other tar implementations. Related inconsistencies can bypass maxMetaEntrySize and reverse local-versus-global PAX precedence. The output-archive variant requires the archive-file input repacking feature or Pack.add(ReadEntry); a mismatch between the declared header size and copied body bytes can create additional members in the output archive. Ordinary creation from filesystem inputs is not that repacking surface. This issue is fixed in version 8.0.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.0.0
Event History
Frequently Asked Questions
Which application workflows are exposed to the output-archive variant?
The output-archive variant requires either the archive-file input repacking feature or Pack.add(ReadEntry). Ordinary archive creation from filesystem inputs is not that repacking surface.
What is the practical impact when the repacking path is used?
A mismatch between a declared header size and the copied body bytes can create additional members in the output archive. The related inconsistencies can also bypass maxMetaEntrySize and reverse local-versus-global PAX precedence.
How can teams determine whether they need to remediate?
Applications using npm/tar versions before 8.0.0 should assess whether they process archives through ReadEntry, archive-file input repacking, or Pack.add(ReadEntry). Version 8.0.0 contains the fix.
What can be done if upgrading cannot happen immediately?
Avoid archive-file input repacking and Pack.add(ReadEntry) workflows where possible. Ordinary creation from filesystem inputs is not the affected repacking surface.