Isaacs node-tar
node-tar: Denial of service via unbounded memory allocation bypassing maxDecompressionRatio
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.0.0
Fixed in 8.0.0
Mitigation
Upgrade node-tar to 8.0.0 or later.
References
- Vendor advisory github.com/isaacs/node-tar/security/advisories…
- Patch github.com/isaacs/node-tar/commit/73b352e0010d…
- Patch github.com/isaacs/node-tar/commit/da66090c7a44…
1 more
- Release notes github.com/isaacs/node-tar/releases/tag/v8.0.0
Timeline
Days relative to CVE publicationFirst public PoC 4.1 days after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-140229 (created 5 Dec 2026, found by us: 5 Dec 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-140229 | 5 Dec 2026 +4.1 d | 5 Dec 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.