Skip to main content

node-tar CVE-2026-140230

| EUVDEUVD-2026-140430 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-12-01 GitHub_M
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
    Identify service extracting tar uploads
  2. Delivery
    Craft archive with deep LongLink linkpath
  3. Exploit
    Upload 181-byte gzip archive
  4. Execution
    Trigger extraction via node-tar
  5. Persist
    Quadratic getDirs() allocation exhausts V8 heap
  6. Impact
    Uncatchable OOM aborts process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a Node.js application using node-tar prior to 8.0.0 extract an attacker-supplied tar/tar.gz archive (tar.x / Unpack) - for example any upload endpoint, CI/artifact pipeline, or package installer that calls node-tar on untrusted input. No authentication or special options are needed (the earlier CVE-2026-73566 required the 'files' option; this one does not), and default configurations are vulnerable. The specific trigger is a crafted archive combining a shallow entry.path (to pass the maxDepth=1024 guard) with a GNU K/LongLink extended header setting entry.linkpath thousands of segments deep, which the unguarded getDirs() expands into O(N²) memory. The principal LIMITING factor (reflected as UI:P in the CVSS 4.0 vector) is that some action must cause the malicious archive to be extracted; services that never auto-extract untrusted archives are not exposed. The failure is an uncatchable V8 heap-exhaustion abort, so no in-process error handling mitigates it - upgrading to node-tar 8.0.0 is the fix.

Impact

This is a genuine, actionable denial-of-service issue rather than an inflated high-CVSS score, but it is a pure availability problem with no confidentiality or integrity impact. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H, base 7.1) indicates a network-reachable, low-complexity, no-privilege attack whose only impact is availability (VA:H) - consistent with the CWE-400 uncontrolled-resource-consumption / heap-exhaustion mechanism described. The vuln.today decision label is 'this_week', signaling prompt but not emergency remediation. No EPSS score, no CISA KEV listing, and no SSVC automatable/technical-impact decision values were supplied in the input, so widespread-exploitation probability cannot be quantified from the data; absence of KEV means there is no confirmation of active exploitation. However, the advisory ships a complete, verified proof-of-concept (Python archive-crafting script plus a Node.js extraction harness with reproduced results on Node v24.18.0), so weaponization effort is minimal. The decisive risk amplifier is node-tar's deployment footprint: it is the extraction engine behind npm install and countless upload-processing services, so the exploitable surface is very broad and a 181-byte file produces an uncatchable process kill. The UI:P (passive interaction) metric is the main signal worth verifying against your deployment - exploitation requires that something trigger extraction of the attacker-supplied archive, which in most upload/CI pipelines happens automatically.

Exploit ScenarioDerived

An attacker uploads a tiny (as small as 181-byte gzip) crafted tar archive to any Node.js service that extracts .tar/.tar.gz input - a file-upload endpoint, CI artifact handler, or package-processing pipeline using node-tar. The archive carries a shallow entry.path that passes the maxDepth guard but a GNU LongLink linkpath thousands of segments deep, which drives quadratic allocation in PathReservations.getDirs() and exhausts the V8 heap before any filesystem syscall. A fully working, author-verified PoC exists, and the resulting OOM is uncatchable by try/catch, Promise .catch(), or uncaughtException, so the entire process aborts with no graceful recovery.

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

Extracting a crafted tar or tar.gz archive with node-tar before 8.0.0 can exhaust the Node.js heap and abort the whole process, giving an unauthenticated remote attacker a reliable denial of service against any service that unpacks attacker-supplied archives. The bypass pairs a shallow entry.path, which passes the existing maxDepth=1024 guard, with a GNU LongLink extended header whose entry.linkpath is thousands of segments deep; PathReservations.getDirs() then materializes every parent prefix of that path, producing O(N²) memory growth that no try/catch, Promise rejection handler or uncaughtException handler can intercept. The vendor advisory documents verified results, including a 181-byte gzip archive that kills a heap-capped Node.js process, so a public proof-of-concept accompanies the fix; no CISA KEV entry or other confirmation of exploitation in the wild is present in the supplied intelligence. Pure availability impact with no confidentiality or integrity effect, fixed in node-tar 8.0.0 and triaged as "this week" priority.

RemediationAI

Upgrade to node-tar 8.0.0 (for example npm install tar@8.0.0 or pin tar to ^8.0.0 in the lockfile), which is the vendor-released fix: the release is at https://github.com/isaacs/node-tar/releases/tag/v8.0.0, the fix commit is https://github.com/isaacs/node-tar/commit/73b352e0010d6c99794ea7374800816a46d3bdb2, and the advisory is https://github.com/isaacs/node-tar/security/advisories/GHSA-xm6h-2993-3ch9; patch availability is confirmed by the vendor. Because the V8 heap exhaustion is uncatchable in-process, in-application error handling is not a mitigation. If upgrading cannot be done immediately, run extraction of untrusted archives in an isolated child process with a bounded heap (--max-old-space-size) and a supervisor that restarts it, accepting that a malicious archive will still abort that worker; or pre-screen archives before extraction by rejecting any entry whose linkpath segment count exceeds the permitted depth (1024) or whose path/linkpath exceeds 32768 characters, which mirrors the 8.0.0 checks but requires an out-of-band validation step and will not cover decompression wrappers unless applied to the expanded tar stream.

Affected VersionsENISA

node-tar < 8.0.0

Affected Packages

euvd node_tar fix: 8.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

node-tar is the tar manipulation and extraction library used directly by many Node.js services and indirectly across the npm ecosystem, so the exposed surface is broad. The flaw is CWE-400 (uncontrolled resource consumption) in src/path-reservations.ts: reserve() pushes entry.linkpath into its path list without any depth validation, and getDirs() then materializes every parent-directory prefix of that path as individual JavaScript strings, an O(N²) allocation. The existing CHECKPATH routine enforces maxDepth=1024 segments only on entry.path, so a symlink entry with a shallow path such as "ln" passes the guard while a GNU K (LongLink) extended header sets linkpath to 10000 or more 'a/' segments. Because the GNU LongLink mechanism permits a linkpath up to roughly 1 MiB (about 524000 segments), the theoretical allocation target is hundreds of gigabytes. The failure occurs during reservation bookkeeping, before any filesystem syscall, so it surfaces as an uncatchable V8 heap-exhaustion abort rather than a catchable exception. Per CPE cpe:2.3:a:isaacs:node-tar all releases below 8.0.0 are affected; the CPE does not encode a finer version boundary, while the package data lists <= 7.5.22 and EUVD lists node-tar < 8.0.0. The trigger requires only that an application call tar.x / Unpack on the malicious archive with default options - unlike the earlier CVE-2026-73566 mapHas recursion issue, no 'files' option is needed. The 8.0.0 fix adds a linkpath segment-count check against maxDepth, caps path and linkpath at MAX_PATH_LENGTH of 32768 characters, deduplicates the reservations set, and adds parser-side hardening.

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

Network-delivered crafted archive, no privileges or auth; extraction must be triggered on attacker input (UI:R); impact is availability-only process-kill (A:H), no C or I.

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 - 18:03 EUVD
CVE Published
Dec 01, 2026 - 16:52 cve.org
HIGH 7.1

DescriptionCVE.org

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, extraction of a crafted archive with a shallow entry path and deeply nested entry.linkpath bypasses the maxDepth guard and drives quadratic PathReservations.getDirs() allocation. A small crafted archive can exhaust the available Node.js heap and terminate the process. This issue is fixed in version 8.0.0.

Executive ViewAI

Why It Matters

CVE-2026-140230 in node-tar before version 8.0.0 allows an unauthenticated remote attacker to crash any Node.js service that extracts attacker-supplied tar archives by exhausting the heap, causing a reliable denial of service. The vulnerability is particularly dangerous because it can be triggered by a tiny 181-byte archive and cannot be caught by standard error handling. Leadership should prioritise this issue because it directly threatens the availability of file-processing APIs, CI/CD pipelines, and any application that unpacks user-uploaded archives, potentially leading to service outages and reputational damage.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
node-tar is the extraction engine behind npm install, deployed almost everywhere
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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