All vulnerabilities

npm

CVE-2026-140231

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

Severity
High
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Fixed in
8.0.0
Exploit chance
0.6% in the next 30 daysHigher than 52% of CVEs. EPSS by FIRST, 2 Dec 2026
Weakness
Decompression bomb (CWE-409)Allocation without limits (CWE-770)
Also known as
GHSA-9hmx-4f52-v64x
Sources
OSV.dev and GitHub

Description

The GHSA-23hp-3jrh-7fp fix (7.5.19, commit 2812e93) aborts when the total decompressed size exceeds maxDecompressionRatio times the compressed size. That limits total work, not how much is held in memory at once. When reading from a file, each read chunk is inflated synchronously and its output is buffered in a paused ReadEntry, so memory use isn't bounded while staying under the ratio. In the same write, zero-size entries are queued without any limit.

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.

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
tarnpm · osv:npm:tar
  • Every version before 8.0.0

Status in Debian

Debian builds fixes into its own packages, so a release is often fixed under an older version number than the one upstream names.

  • 4 vulnerable
PackageDebian releaseStatus
node-tarsidunstableVulnerableNo fix yet.
14forkytestingVulnerableNo fix yet.
13trixiestableVulnerableNo fix yet.
12bookwormoldstableVulnerableNo fix yet.

From Debian's security tracker for CVE-2026-140231 , read in the last 12 hours.

About tar

Weekly downloads (npm)
113,520,680npm, 1 Dec 2026

References