Isaacs node-tar
node-tar UnpackSync never completes sync-stream extraction after any failing entry (PEND/UNPEND imbalance)
node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, during synchronous stream extraction, UnpackSync performs entry work without calling PEND, but inherited nonfatal error handling calls UNPEND after an entry fails. The pending counter becomes negative, so the exactly-zero completion condition is never reached and the stream does not emit end, finish, or close. The default asynchronous API and file-based synchronous API are not affected. This issue is fixed in version 8.0.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 7.5.22, < 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…
- Release notes github.com/isaacs/node-tar/releases/tag/v8.0.0
Timeline
Days relative to CVE publicationFirst public PoC 1 day after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-140252 (created 2 Dec 2026, found by us: 2 Dec 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-140252 | 2 Dec 2026 +1 d | 2 Dec 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.