CVE-2026-140242: node-tar: non-finite PAX size (Infinity) bypasses validation, causing extraction entry loss and an uncaught exception when re-packing

Published Dec 1, 2026
·
Updated

node-tar is a tar archive manipulation library for Node.js. From 7.0.0 until 7.5.24, tar: non-finite PAX size (Infinity) bypasses validation, causing extraction entry loss and an uncaught exception when re-packing. The affected security path includes tar, size, 17 size=Infinity\n. This issue is fixed in version 7.5.24.

Affected Software

1 affected component
npm/tar>=7.0.0<7.5.24

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 7.5.24

Event History

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

Frequently Asked Questions

1

Which installations are affected?

Installations using npm/tar versions from 7.0.0 through versions before 7.5.24 are affected. The issue is fixed in version 7.5.24.

2

What input is needed to trigger the issue?

An attacker needs a tar archive containing a PAX size value of Infinity, such as the affected size=Infinity path. Processing that archive can cause extraction entries to be lost and can trigger an uncaught exception when the archive is re-packed.

3

What should we do if we cannot immediately upgrade?

The provided information identifies the malformed PAX size=Infinity value as the triggering input. Until upgrading to 7.5.24, avoid processing or re-packing untrusted tar archives that may contain such PAX metadata.

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