CVE-2026-140229: node-tar: Denial of service via unbounded memory allocation bypassing maxDecompressionRatio
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.
References
- github.com/advisories/GHSA-9239-v992-p74f
- github.com/isaacs/node-tar/commit/73b352e0010d6c99794ea7374800816a46d3bdb2
- github.com/isaacs/node-tar/commit/da66090c7a44b2140bd4a6343c478a8e411e1aa7
- github.com/isaacs/node-tar/releases/tag/v8.0.0
- github.com/isaacs/node-tar/security/advisories/GHSA-9239-v992-p74f
- nvd.nist.gov/vuln/detail/CVE-2026-140229
Code Behaviors & Features
Detect and mitigate CVE-2026-140229 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →