CVE-2026-140252 PUBLISHED

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

Assigner: GitHub_M
Reserved: 30.11.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CVSS Score: 7.1

Product Status

Vendor isaacs
Product node-tar
Versions
  • Version >= 7.5.22, < 8.0.0 is affected

References

Problem Types

  • CWE-667: Improper Locking CWE
  • CWE-696: Incorrect Behavior Order CWE
  • CWE-911: Improper Update of Reference Count CWE