Skip to main content

node-tar EUVDEUVD-2026-140462

| CVE-2026-140252 HIGH
Improper Locking (CWE-667)
2026-12-01 GitHub_M GHSA-25mm-r35j-6hgm
7.1
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malformed tar entry (e.g. dangling hardlink)
  2. Exploit
    Victim extracts via UnpackSync / x({sync:true}) stream
  3. Execution
    Entry fails, PENDING counter driven negative
  4. Impact
    Stream never emits end/finish/close, consumer hangs permanently

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Proper locking
Exploitation Conditions

Exploitation requires that the consuming application uses node-tar's synchronous stream extraction specifically - tar.x({ sync: true }) WITHOUT the 'file' option, or a directly-constructed UnpackSync stream - AND awaits the stream's end/finish/close events; such consumers hang permanently after the first failing entry. The victim must process an attacker-supplied or merely damaged archive (UI:P), which need only contain one crafted 512-byte failing entry (e.g. a hardlink to a nonexistent target). Strong limiting factors sharply reduce real-world exposure: the default asynchronous API and the common file-based synchronous API (x({ sync: true, file }), which returns void) are NOT affected, and only versions 7.5.22 through <8.0.0 are vulnerable. There is no confidentiality or integrity impact and no incorrect data is written to disk (the failing entry is simply not created).

Impact

This is a genuine but narrowly-scoped availability issue, not a top-tier emergency. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H) and CWE-667 (improper locking / PEND-UNPEND imbalance) agree with the advisory: impact is availability-only (permanent stream hang), with no confidentiality or integrity effect, confirmed explicitly by the vendor advisory ('No confidentiality or integrity effect and no incorrect data is written'). The 'Information Disclosure' tag in the input therefore contradicts every other signal and appears mislabeled. SSVC signals are consistent and moderate: Exploitation=poc (a validated PoC exists, but no active exploitation), Automatable=no, Technical Impact=partial - matching the vuln.today 'this_week' priority rather than act_now/emergency. KEV status is NO and no EPSS score was provided, so there is no evidence of widespread or targeted active exploitation. The real-world risk is further bounded by the narrow trigger surface: only consumers using the synchronous stream API (UnpackSync, or x({sync:true}) without file) who await end/finish/close are affected, and only in versions 7.5.22 through <8.0.0. Net: a real priority to patch for the specific subset of affected consumers, but low systemic urgency given availability-only impact, non-automatable exploitation, and the uncommon API usage pattern required.

Exploit ScenarioDerived

An attacker supplies a malformed tar archive - a single 512-byte entry such as a hardlink pointing to a nonexistent target is sufficient - to an application that extracts it using node-tar's synchronous stream API and awaits stream completion. Extraction emits a non-fatal TAR_ENTRY_ERROR warning and then the stream never emits end, finish, or close, so the consumer hangs indefinitely with no catchable error, denying service. A validated proof-of-concept is published in the vendor's GHSA advisory (reproduced against tar@7.5.22 on Node v24.19.0).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Synchronous stream extraction in the npm package node-tar (versions 7.5.22 through 7.x, before 8.0.0) never emits end, finish, or close after any single archive entry fails, so a consumer that pipes into x({ sync: true }) without a file option - or into a directly constructed UnpackSync stream - and awaits completion hangs indefinitely. Unauthenticated remote attackers can trigger this by supplying an archive containing one failing 512-byte entry (for example a hardlink whose target does not exist), which produces only a non-fatal TAR_ENTRY_ERROR warning and then wedges the stream; the impact is availability only, with no data written and no confidentiality or integrity effect. A validated public proof-of-concept is published in the upstream advisory (SSVC exploitation status: PoC), and the issue is fixed in node-tar 8.0.0. Exposure is sharply limited because the default asynchronous API and the common file-based synchronous API (x({ sync: true, file })) are not affected.

RemediationAI

Upgrade node-tar to 8.0.0 or later, the version in which the vendor fixed the issue; the change is in commit 73b352e0010d6c99794ea7374800816a46d3bdb2 and the release is tagged at https://github.com/isaacs/node-tar/releases/tag/v8.0.0, with details in advisory GHSA-25mm-r35j-6hgm. When upgrading is not immediately possible, avoid the affected configuration entirely by using the default asynchronous API or the file-based synchronous API (x({ sync: true, file })), both of which are unaffected; for consumers that must keep the sync-stream path, bound the damage by wrapping extraction in an explicit timeout or abort so a wedged stream cannot hold a worker or request indefinitely, at the cost of surfacing an artificial error where a real completion event would normally occur. Because a single damaged or hostile 512-byte entry is enough to hang the stream once it fails, treat any archive accepted from untrusted sources as a potential trigger until the dependency is bumped; the upstream advisory notes the disk state remains fail-closed (the failing entry is not created), so there is no cleanup burden on disk after an attempted attack.

Affected VersionsENISA

node-tar 7.5.22, < 8.0.0

Affected Packages

npm tar fix: 8.0.0
euvd node_tar fix: 8.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

node-tar's Unpack class implements a reference-counted pending mechanism: each entry's filesystem work is bracketed with [PEND]() and [UNPEND](), and [MAYBECLOSE] emits prefinish/finish/end only when the parser has ended AND the pending counter is exactly zero. UnpackSync[CHECKFS] performs the same per-entry work but, because all work completes when the parser ends, it never calls [PEND](). It also does not override the inherited [ONERROR] handler, which unconditionally calls [UNPEND]() for any non-CwdError entry failure while emitting a non-fatal TAR_ENTRY_ERROR warning. The result is a counter imbalance - the advisory classifies it under CWE-667 (improper locking) along with CWE-696 (incorrect behavior order) and CWE-911 (improper update of a reference count) - that drives the pending counter to -1 and permanently suppresses the completion events. A secondary fall-through in the same method (a missing return after the rmdir branch) can double-invoke MAKEFS on a directory-replacement entry, producing two warnings and a counter of -2. The upstream fix in the 8.0.0 commit adds a no-op [UNPEND]() override to the sync class so the counter is never decremented, alongside unrelated hardening (length/depth limits on path and linkpath, decompressor construction error handling, path-reservation bookkeeping). The advisory attributes the trigger to the stream's bookkeeping rather than to any parsing or memory-safety flaw; no confidentiality or integrity impact is described.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.1 HIGH
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
vuln.today AI 6.5 MEDIUM

A single crafted archive entry reliably triggers the hang (AC:L, PR:N), but a victim must extract attacker-supplied input via the sync-stream API (UI:R); impact is availability-only (A:H, C:N, I:N).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 20:03 EUVD
CVE Published
Dec 01, 2026 - 18:31 cve.org
HIGH 7.1

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 23,668 npm packages depend on tar (6,248 direct, 17,545 indirect)

Ecosystem-wide dependent count for version 7.5.22.

Executive ViewAI

Why It Matters

A denial-of-service vulnerability in node-tar (versions 7.5.22 through 7.x) can allow an unauthenticated attacker to hang stream extraction indefinitely via a crafted archive, but only for applications using the synchronous streaming API without a file option. This impacts service availability for affected consumers, though the default asynchronous API and common synchronous file-based usage remain unaffected, limiting overall organizational exposure.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
High
extremely popular npm tar library, but narrow vulnerable version window and API
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment GHSA CIRCL GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy