home / blog

2026-12-02 · high

CVE-2026-140252: Vulnerability in node-tar

High vulnerability in node-tar causes hang during synchronous extraction.

CVE-2026-140252: Vulnerability in node-tar

CVE-2026-140252 affects node-tar, a tar archive manipulation library for Node.js. The issue occurs during synchronous stream extraction, where UnpackSync performs entry work without calling PEND, but inherits nonfatal error handling that calls UNPEND after an entry fails. The pending counter becomes negative, preventing the stream from emitting end, finish, or close events, causing a hang.

The vulnerability severity is rated 7.1 in the CVSS score, classifying it as high. The status is verifiable on the NVD where it was officially published on 2026-12-01. GitHub signals indicate the presence of exploits and PoCs that leverage this vulnerability, confirming the real risk for applications using vulnerable versions of node-tar.

In defense, it is crucial to immediately update the node-tar library to version 8.0.0 that fixes the issue. For applications that cannot be updated immediately, mitigations such as restricting tar archive extraction to trusted sources or implementing timeouts to prevent prolonged hangs can be implemented. Monitor applications for signs of hang during extraction operations.

At a glance

What
Vulnerability in node-tar library for Node.js causing hang during synchronous archive extraction
Severity
CVSS 7.1 (high)
Affected versions
From version 7.5.22 up to 8.0.0 (excluded)
Fix
Update to version 8.0.0
Status
Officially published on NVD on 2026-12-01
Action
Immediately update to version 8.0.0 of the node-tar library

Sources: NVD, CVE-2026-140252

← All articles