node-tarの同期ストリーム展開で処理が完了せず停止する脆弱性
Summary
node-tarの7.5.22から8.0.0より前のバージョンでは、UnpackSyncによる同期ストリーム展開で、いずれかのエントリーが失敗すると処理が完了せず、endやfinishなどのイベントが発行されなくなります。非同期APIとファイル指定の同期APIは影響を受けません。修正版の8.0.0で対応できるため、8.0.0へのアップデートを検討してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
node-tarの7.5.22から8.0.0より前のバージョンでは、UnpackSyncによる同期ストリーム展開で、いずれかのエントリーが失敗すると処理が完了せず、endやfinishなどのイベントが発行されなくなります。非同期APIとファイル指定の同期APIは影響を受けません。修正版の8.0.0で対応できるため、8.0.0へのアップデートを検討してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| isaacsnode-tar | — | Not listed |
| npmtar |
≥ 7.5.22, < 8.0.0→ 8.0.0 |
8.0.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-140252 node-tar No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- web github.com
- web github.com