Isaacs node-tar
node-tar: A small archive exhausts memory or CPU through path-reservation bookkeeping
node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.2, a small crafted archive can exhaust memory or CPU through several path bookkeeping paths. Asynchronous PathReservations performs excessive work for unbounded linkpath depth and long path components, retains completed reservation state, and stores long names in the normalizeUnicode cache whose entry-count limit does not bound bytes. Separately, filesFilter memoizes path prefixes when the caller supplies a file list. This issue is fixed in version 8.0.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.0.2
Fixed in 8.0.2
Mitigation
Upgrade node-tar to 8.0.2 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/de8790075256…
1 more
- Release notes github.com/isaacs/node-tar/releases/tag/v8.0.2
Timeline
Days relative to CVE publicationFirst public PoC 1.3 days after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-140240 (created 3 Dec 2026, found by us: 3 Dec 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-140240 | 3 Dec 2026 +1.3 d | 3 Dec 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.