node-tar: Denial of service via unbounded memory allocation bypassing maxDecompressionRatio
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| npm:tar | < 8.0.0 | 8.0.0 |
The maxDecompressionRatio guard tar added for GHSA-23hp-3jrh-7fpw is evaluated after node zlib has already materialized the inflated output, so it observes an allocation rather than bounding one. A remote, unauthenticated party who can hand tar.t()/tar.x() an archive can deny service with 65,608 bytes, at stock settings. Details The check runs from the decompressor's 'data' event, which fires once per call to node zlib's synchronous _processChunk — by then that input chunk's entire inflated out…
Read on GitHub Advisory Database
On 12/05/2026, 09:16 AM, GitHub Advisory Database published "node-tar: Denial of service via unbounded memory allocation bypassing maxDecompressionRatio" (type: Advisory). Severity is "High" (high). Related technologies: JavaScript / Node.js. CVE: CVE-2026-140229.