CVE-2026-140252

7.1High

Published Dec 1, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite

7.1CVSS

High

0CVSS v4.010

Attack vector
Network
Complexity
Low
Privileges
None
User action
Passive
Impact
High impact on availability
Weakness
CWE-667, CWE-696, CWE-911

What an attacker gets

Remote attackers can cause a permanent denial of service by hanging the process during synchronous stream extraction. This requires a user to process a malicious tar archive using the affected synchronous API.

Root cause

A logic error in synchronous stream extraction causes the pending counter to become negative, preventing the stream from ever completing.

Affected versions

node-tar 7.5.22 through 7.x (before 8.0.0)

CVSS v4.0 · 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Fix & remediation

Upgrade to node-tar version 8.0.0 or later. If you cannot upgrade, avoid using the synchronous stream extraction API for untrusted archives.

remediation — bash
$ npm install node-tar@latest

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

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

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-140252

More fully triaged vulnerabilities you may want to check next.