node-tar UnpackSync never completes sync-stream extraction after any failing entry (PEND/UNPEND imbalance)
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| npm:tar | >= 7.5.22, < 8.0.0 | 8.0.0 |
When node-tar's synchronous stream extraction (tar.x({ sync: true }) without the file option, or a directly-constructed UnpackSync stream) processes any archive entry that fails, the stream never emits end, finish, or close. A single failing entry, for example a hardlink whose target does not exist (one 512-byte entry), emits a TAR_ENTRY_ERROR warning and then hangs the stream. Consumers that await stream completion hang indefinitely on hostile or merely damaged input, with no error to catch be…
Read on GitHub Advisory Database
On 12/02/2026, 04:27 AM, GitHub Advisory Database published "node-tar UnpackSync never completes sync-stream extraction after any failing entry (PEND/UNPEND imbalance)" (type: Advisory). Severity is "High" (high). Related technologies: JavaScript / Node.js. CVE: CVE-2026-140252.