Skip to main content

node-tar EUVDEUVD-2026-140447

| CVE-2026-140241 HIGH
Uncaught Exception (CWE-248)
2026-12-01 GitHub_M GHSA-72fp-85cc-g945
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
    Supply crafted zstd-magic archive to listing/extraction endpoint
  2. Exploit
    Compression sniffer constructs unguarded ZstdDecompress
  3. Execution
    Constructor throws synchronous TypeError in read callback
  4. Impact
    Async promise never settles, uncaught exception crashes Node process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
Exploitation Conditions

Exploitation requires the target to (1) use node-tar in the vulnerable range (>=7.5.22, <8.0.0), (2) process an attacker-supplied archive through the ASYNCHRONOUS file API specifically (tar.t({file}) or tar.x({file})), and (3) run on a Node.js runtime WITHOUT native zstd support - namely Node 18.x, 20.x, 21.x, 22.0-22.14, or 23.0-23.7. The malicious input is trivial: four attacker-controlled bytes carrying the zstd magic header (28 b5 2f fd), with no valid tar structure needed. Limiting factors that reduce real-world risk: the flaw is completely INERT on Node 22.15+, 23.8+, and 24+ (native ZstdDecompress exists there and the same input is handled as a catchable error), and it does NOT trigger in synchronous mode or on direct stream writes, which throw catchably from the caller's stack on all runtimes. No authentication and no human interaction are required; it fires automatically in pipelines such as npm-style installs and CI artifact processing.

Impact

This is a genuine but bounded priority. The CVSS 4.0 vector (AV:N/AC:L/PR:N, availability-only VA:H, score 7.1) and the vuln.today 'this_week' decision label agree this is a remotely reachable, low-complexity, unauthenticated flaw worth prompt patching but not an emergency - consistent with an availability-only impact (no confidentiality or integrity loss, SSVC technical impact is partial/DoS rather than total system takeover). A working PoC is published in the GHSA advisory, which raises real-world likelihood above a theory-only bug, but there is NO CISA KEV listing and NO EPSS score in the provided data, so there is no evidence of active or automated exploitation - treat the exploit as available-but-not-yet-observed-in-the-wild. The single most important risk modulator is NOT in the CVSS score: exploitability is conditional on the target Node.js runtime lacking native zstd (Node 18.x, 20.x, 21.x, 22.0-22.14, 23.0-23.7) and is completely inert on Node 22.15+/23.8+/24+ and in synchronous/stream mode - so an org's true exposure depends on its Node version fleet, not just whether it ships node-tar. One signal conflict to verify: the supplied CVSS 4.0 vector sets UI:P (passive user interaction) while the GHSA advisory explicitly states 'no user interaction' and highlights fully-automated triggers (npm installs, CI artifact processing) - the 'no interaction' reading is better supported by the evidence and makes the flaw slightly more severe than UI:P implies.

Exploit ScenarioDerived

An attacker places a four-byte file beginning with the zstd magic (28 b5 2f fd) into any location an affected service later lists or extracts with node-tar's async file API (tar.t({file}) / tar.x({file})) - for example a package tarball, an uploaded archive, or a CI build artifact. Because compression sniffing constructs a ZstdDecompress with no error handling, on a Node runtime without native zstd the constructor throws synchronously inside the file-read data handler, the returned promise never settles, and the process dies with an uncaught exception. A validated working PoC is published in the GHSA advisory (confirmed crashing Node v20.20.2); the network vector and low complexity (AV:N/AC:L) mean no privileges and no special tooling are needed.

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

A process-crashing denial of service in node-tar 7.5.22 up to (but not including) 8.0.0 lets a four-byte attacker-supplied file kill any Node.js process that lists or extracts it through the asynchronous file API (tar.t({file}) / tar.x({file})). Because node-tar's default compression sniffing recognizes the Zstandard magic header and constructs new ZstdDecompress({}) without a guard, runtimes lacking native zstd support (Node 18.x, 20.x, 21.x, 22.0-22.14, 23.0-23.7) throw a TypeError inside the read stream's data handler that never reaches the caller's promise, so try/catch and .catch() cannot contain it and the process dies. Availability-only impact with no confidentiality or integrity loss, unauthenticated and requiring no interaction; the flaw is inert on Node 22.15+/23.8+/24+ and does not trigger in synchronous mode or on direct stream writes. A validated proof-of-concept is published in the upstream advisory and was confirmed to crash Node 20.20.2; there is no indication of active exploitation and no public exploit identified beyond that advisory PoC at time of analysis. Vendor-released patch: 8.0.0.

RemediationAI

Upgrade node-tar to 8.0.0, the exact fixed release (release tag https://github.com/isaacs/node-tar/releases/tag/v8.0.0, fix commit 73b352e0010d6c99794ea7374800816a46d3bdb2), which wraps the ZstdDecompress construction in try/catch and routes the failure through Parser.abort() so the async promise rejects normally instead of killing the process; see the advisory at https://github.com/isaacs/node-tar/security/advisories/GHSA-72fp-85cc-g945. As an interim compensating control where the upgrade cannot be applied immediately, move the affected workload onto Node 22.15+, 23.8+ or 24+, where zlib.ZstdDecompress exists and the same input produces a catchable rejection rather than a crash - the trade-off is a runtime upgrade and revalidation of the host application. Avoiding the asynchronous file API (tar.t({file}) / tar.x({file})) in favour of synchronous mode or direct stream writes also prevents the crash, since those paths throw catchably from the caller's stack on all runtimes, but that requires application code changes and does not protect third-party code that calls the async API internally. Installing a process-level uncaughtException handler will keep the process alive but does not resolve the underlying condition: the tar operation's promise never settles, so the request hangs instead of failing cleanly, and the process remains in an inconsistent state. Updating to 8.0.0 is the only complete fix.

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 is the widely deployed tar archive manipulation library for Node.js (CPE cpe:2.3:a:isaacs:node-tar), used directly and transitively in npm-style package installation and CI artifact processing. In the affected range its Parser.write() sniffs the first bytes of every input stream for compression magic; when it sees the Zstandard magic 28 b5 2f fd it takes the isZstd branch and constructs new ZstdDecompress({}) (src/parse.ts, around lines 544-550) with no surrounding error handling. On a runtime whose node:zlib exposes no zstd binding, minizlib's ZlibBase constructor throws TypeError: Compression method not supported: ZstdDecompress synchronously. Critically, that construction runs inside the file-read stream's data handler (ReadStream.emit -> Unpack.write -> new ZstdDecompress), so the throw is not routed through the stream 'error' event or Parser.abort(); for the async file form the returned promise never settles and the exception escapes as an uncaught exception, which is the CWE-248 (uncaught exception) class, with CWE-755 (improper handling of exceptional conditions) also assigned. zlib.ZstdDecompress was added in Node v23.8.0 and backported to v22.15.0, so on those and later runtimes the class exists and the identical four-byte input is handled through the normal catchable error path instead. The upstream fix in 8.0.0 wraps the decompressor construction in try/catch, calls this.abort(er), and returns false so the failure surfaces as a normal rejection; the same commit also hardens unrelated resource-limit paths (end-of-archive handling, path reservation, linkpath depth and MAX_PATH_LENGTH checks).

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 7.5 HIGH

Remote attacker-supplied file auto-processed in pipelines so AV:N/PR:N/UI:N; trivial 4-byte trigger gives AC:L; availability-only process crash gives A:H with C/I:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/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 - 19:02 EUVD
CVE Published
Dec 01, 2026 - 17:39 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, node-tar fails to handle an exception when automatically detecting Zstandard (zstd) compression on Node.js runtimes without native zstd support. An attacker who can supply a specially crafted input file to the asynchronous file listing or extraction API can cause an uncaught exception that terminates the process, resulting in denial of service. 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.

Technical POC Analysis

The defect is an uncaught exception (CWE-248, with CWE-755 as the underlying improper handling of an exceptional condition) in node-tar's default compression sniffing.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A process-crashing denial-of-service flaw in the widely used node-tar library (versions 7.5.22 through 8.0.0) allows even a four-byte malicious file to terminate any Node.js process that lists or extracts it using the asynchronous API on certain Node.js runtimes. This vulnerability can be triggered by unauthenticated users without interaction, potentially causing service outages for any product or service that processes untrusted tar archives. Leadership should prioritize remediation because a single crafted file can take down production systems, impacting availability and customer trust.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
node-tar is a near-universal, top-downloaded npm dependency across the Node.js ecosystem
Threat Intel
1
1 source
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