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

Published Dec 1, 2026
·
Updated

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

1 affected component
npm/tar<8.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.0.0

Event History

Dec 1, 2026
CVE Published
via MITRE·05:14 PM
Data Sourced
via MITRE·05:14 PM
DescriptionWeakness
Data Sourced
via OSV·05:14 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203