CVE-2026-140231: node-tar: Decompression within the ratio limit is buffered in memory without backpressure, and zero-size entries queue without bound

Published Dec 1, 2026
·
Updated

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, decompression within the ratio limit is buffered in memory without backpressure, and zero-size entries queue without bound. A service that extracts or lists untrusted compressed archives can be made to use much more memory than the archive size suggests, without hitting the ratio limit. The affected security path includes maxDecompressionRatio, ReadEntry, src/parse.ts:576-577, 551-555, 343. This issue is fixed in version 8.0.0.

Affected Software

1 affected component
npm/node-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·04:53 PM
Data Sourced
via MITRE·04:53 PM
DescriptionWeakness
Data Sourced
via OSV·04:53 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Services using node-tar before 8.0.0 to extract or list compressed archives supplied by untrusted parties are exposed. The issue can cause memory use far beyond what the archive size suggests.

2

Does configuring maxDecompressionRatio prevent exploitation?

No. The affected behavior occurs while decompression remains within the configured ratio limit, so the ratio limit does not prevent the unbounded memory pressure described here.

3

What archive content is involved in triggering the memory growth?

An attacker can use compressed archive content that is buffered in memory without backpressure and zero-size entries that queue without bound. Exploitation requires the application to process the attacker-controlled archive.

4

What is the available remediation?

Upgrade node-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