## node-tar UnpackSync never completes sync-stream extraction after any failing entry (PEND/UNPEND imbalance)

- 種別: advisory
- 重大度: high
- 関連技術: nodejs
- CVE: CVE-2026-140252
- 公開日時: 2026-12-01T19:27:34.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-25mm-r35j-6hgm)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-25mm-r35j-6hgm

影響: 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…