CVE-2026-140229: node-tar: Denial of service via unbounded memory allocation bypassing maxDecompressionRatio

Published Dec 1, 2026
·
Updated

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, when node-tar processes compressed attacker-controlled input, node zlib can materialize the inflated output before maxDecompressionRatio is evaluated. The guard therefore observes an allocation after it occurred rather than bounding it, allowing memory exhaustion despite the configured ratio limit. 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 node-tar to a version that resolves this vulnerability.

    Fixed in 8.0.0

Event History

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

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using node-tar versions before 8.0.0 are exposed when they process compressed tar input controlled by an attacker.

2

What does an attacker need to exploit it?

An attacker needs to supply a compressed archive whose inflation causes excessive memory allocation. Exploitation can exhaust application memory even if maxDecompressionRatio is configured.

3

Does configuring maxDecompressionRatio mitigate the issue in affected versions?

No. In versions before 8.0.0, the decompressed output can be allocated before node-tar evaluates the ratio limit, so the setting does not prevent the memory exhaustion condition.

4

What is the remediation?

Upgrade npm/tar to version 8.0.0, which fixes the issue.

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