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.
History

Tue, 01 Dec 2026 18:45:00 +0000

Type Values Removed Values Added
Description 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.
Title node-tar UnpackSync never completes sync-stream extraction after any failing entry (PEND/UNPEND imbalance)
Weaknesses CWE-667
CWE-696
CWE-911
References
Metrics cvssV4_0

{'score': 7.1, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2026-12-01T18:31:37.758Z

Updated: 2026-12-01T18:31:37.758Z

Reserved: 2026-11-30T22:04:22.619Z

Link: CVE-2026-140252

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.