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
- 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.
Affected software
| Software | Affected versions |
|---|---|
tarnpm · osv:npm:tar |
|
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
| Package | Debian release | Status |
|---|---|---|
| node-tar | sidunstable | VulnerableNo fix yet. |
| 14forkytesting | VulnerableNo fix yet. | |
| 13trixiestable | VulnerableNo fix yet. | |
| 12bookwormoldstable | VulnerableNo 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
Vulnerabilities in tar
- In our list
- 20
- Published in the last 12 months
- 20
- Critical, last 12 months
- 0
- High, last 12 months
- 19
- Known exploited
- 0
- CVE-2026-140230node-tar PathReservations.getDirs() quadratic memory amplification via unbounded symlink linkpath depth — uncatchable OOM process killHigh 2 Dec 2026
- CVE-2026-140234node-tar: Incomplete NUL-byte truncation in ustar, GNU, and PAX names causes name differentials and async crashesHigh 2 Dec 2026
- CVE-2026-140235node-tar parses PAX extended headers by newline-splitting instead of length-delimiting, causing record dropping and forged-field injectionHigh 2 Dec 2026
- CVE-2026-140236node-tar: Archive framing differential from PAX size still being applied to GNU/PAX meta entries via ReadEntry and related size/precedence inconsistenciesHigh 2 Dec 2026
- CVE-2026-140237node-tar: ReadEntry pending PAX size reapplication permits metadata-body file smugglingMedium 2 Dec 2026
- CVE-2026-140238node-tar: Newline injection in PAX extended-header records enables entry-attribute forgery (path overwrite → npm postinstall RCE on Windows)High 2 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-140231
- GitHub Advisory Database https://github.com/advisories/GHSA-9hmx-4f52-v64x