CVE-2026-140252

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

Published Dec 1, 2026 CVSS 4.0 · 7.1 High EPSS n/a KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-25mm-r35j-6hgm node-tar UnpackSync never completes sync-stream extraction after any failing entry (PEND/UNPEND imbalance)
History
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'}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Dec 1, 2026, 10:16 PM
Reserved
Nov 30, 2026, 10:04 PM
Status
Deferred
Published
Dec 1, 2026, 7:17 PM
Modified
Dec 1, 2026, 11:17 PM