Prior to 8.0.0, extraction of a crafted archive with a shallow entry path and deeply nested entry.linkpath bypasses the maxDepth guard and drives quadratic PathReservations.getDirs() allocation.
- CVSS
- 7.1High
- Chance of exploitation (EPSS)
- 0.81%
- Published
- Dec 1, 2026
- In the news
- 1 story
What to do
A serious resource exhaustion flaw in Isaacs Node-tar that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Isaacs Node-tar
- < 8.0.0
Description
node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, extraction of a crafted archive with a shallow entry path and deeply nested entry.linkpath bypasses the maxDepth guard and drives quadratic PathReservations.getDirs() allocation. A small crafted archive can exhaust the available Node.js heap and terminate the process. This issue is fixed in version 8.0.0.
Affected products
Get alerts for these →Timeline 5
Latest change: tar: node-tar: Denial of service via unbounded memory allocation bypassing maxDecompressionRatio (Dec 4, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Yesterday
- Researchtar: node-tar: Denial of service via unbounded memory allocation bypassing maxDecompressionRatioGitHub Advisories · 00:16 UTC
Fri, Dec 4, 2026
Wed, Dec 2, 2026
- Researchtar: node-tar PathReservations.getDirs() quadratic memory amplification via unbounded symlink linkpath depth — uncatchable OOM process killGitHub Advisories · 18:33 UTC
Tue, Dec 1, 2026
- CVECVE-2026-140230 published (CVSS 7.1)CVE Program · 17:17 UTC
References 4
- github.com /isaacs/node-tar/commit/73b352e0010d6c99794ea7374800816a46d3bdb2
- github.com /isaacs/node-tar/releases/tag/v8.0.0
- github.com /isaacs/node-tar/security/advisories/GHSA-xm6h-2993-3ch9
- github.com /isaacs/node-tar/security/advisories/GHSA-xm6h-2993-3ch9