Skip to main content

node-tar CVE-2026-59874

| EUVDEUVD-2026-42306 HIGH
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-07-08 GitHub_M GHSA-8x88-c5mf-7j5w
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Craft tar header with valid checksum
  2. Delivery
    Encode negative base-256 entry size
  3. Exploit
    Deliver archive to tar.replace consumer
  4. Execution
    Scanner loops on same header
  5. Impact
    Node.js event loop hangs (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
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 the target Node.js application call node-tar's tar.replace on archive data an attacker can influence (e.g., an uploaded or fetched tarball); the malicious input is a tar header with a valid checksum but a negative base-256 encoded entry size. Limiting factors: applications that only extract/create archives, or that never expose tar.replace to untrusted input, are not exploitable via this path; there is no auth or user-interaction requirement per the CVSS vector (PR:N/UI:N), but the tar.replace code path and attacker-controlled archive bytes are hard prerequisites not captured by the raw vector. The impact is limited to availability (process/event-loop hang) - no data disclosure or code execution.

Impact

This is a genuine availability risk but not a top-tier emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores impact solely on the vulnerable system's availability (VA:H) with no confidentiality or integrity effect, consistent with the Denial Of Service tag and CWE-835 - a single crafted archive stalls the process, but no code execution or data exposure occurs. No EPSS score, KEV listing, or POC was provided, so there is no evidence of active or probable near-term exploitation; the 8.7 severity is driven by the low-complexity, unauthenticated availability hit, not by real-world exploitation signals. The practical limiter the raw vector understates is that exploitation requires the target application to invoke tar.replace specifically on attacker-influenced archive data - the AT:N/UI:N metrics do not capture this application-design precondition. Net: patch on a normal maintenance cadence, prioritizing services that process user-uploaded tarballs.

Exploit ScenarioDerived

An application uses tar.replace to update entries in tar archives that users can upload (for example a package-processing or backup service). An attacker uploads a specially crafted tarball containing a header with a valid checksum but a negative base-256 encoded size; when the service scans it, the tar.replace loop spins on that header forever, consuming CPU and hanging the Node.js event loop until the process is killed. No POC was provided in the intelligence, and exploitation needs no authentication or user interaction beyond delivering the archive.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 08, 2026

Denial of service in node-tar prior to 7.5.18 allows remote attackers to hang a Node.js application by feeding it a crafted tar archive: a checksum-valid header carrying a negative base-256 encoded entry size makes the tar.replace scanner advance zero bytes and re-parse the same header forever. No public exploit or active exploitation is identified at time of analysis, but the CVSS 4.0 base score of 8.7 reflects the high, easily-reachable availability impact. Only applications that call tar.replace on untrusted archive input are affected.

RemediationAI

Vendor-released patch: node-tar 7.5.18 - upgrade the direct or transitive dependency to 7.5.18 or later (npm install tar@^7.5.18, and run npm audit / update lockfiles to pull the fix into transitive uses). The corrective commit is https://github.com/isaacs/node-tar/commit/9e78bf058b2c22dd4d52e00d8922d5c06fc2f7b5 and the advisory is https://github.com/isaacs/node-tar/security/advisories/GHSA-8x88-c5mf-7j5w. Where an immediate upgrade is not possible, the concrete compensating control is to avoid calling tar.replace on untrusted or externally-sourced archives, routing untrusted tarballs through a re-created archive or a size/timeout-bounded extraction path instead; the trade-off is reduced in-place update functionality for affected workflows. Additionally, run archive-processing work in a worker thread or child process with a wall-clock timeout so an infinite-loop input kills only that worker rather than the main event loop, at the cost of some added operational complexity.

Affected VersionsENISA

node-tar < 7.5.18

Affected Packages

npm tar fix: 7.5.18
euvd node_tar fix: 7.5.18

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 (the isaacs/node-tar package, CPE cpe:2.3:a:isaacs:node-tar) is the de-facto tar implementation for the Node.js ecosystem and is bundled as a dependency of npm itself. The tar format encodes each entry's size in an octal or, for large values, a base-256 field within the 512-byte header. The tar.replace API scans an existing archive header-by-header, using the parsed entry size to compute how far to advance to the next header. The root cause is CWE-835 (Loop with Unreachable Exit Condition / infinite loop): the scanner trusts a header whose checksum validates but whose base-256 size decodes to a negative value, so the computed forward offset is zero (or negative), the read pointer never moves past the malicious header, and the same header is parsed indefinitely, pinning the event loop.

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 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Attacker-supplied archive reaches the scanner over the network with no auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is a process hang only, so A:H with C:N/I:N and unchanged scope.

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
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
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

1
Patch available
Jul 08, 2026 - 17:01 EUVD

DescriptionCVE.org

node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.18, tar.replace accepts a checksum-valid tar header with a negative base-256 encoded entry size, causing the archive scanner to make no progress while repeatedly parsing the same header. This issue is fixed in version 7.5.18.

Blast Radius

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

Ecosystem-wide dependent count for version 7.5.18.

Executive ViewAI

Why It Matters

node-tar versions prior to 7.5.18 are vulnerable to denial-of-service attacks through specially crafted tar archives that cause Node.js applications to hang indefinitely. The vulnerability has no public exploit identified at time of analysis, but poses immediate availability risk to any organization whose applications process untrusted tar files using the tar.replace function. This affects common scenarios such as file upload services and data pipeline integrations.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Restrict tar.replace() to trusted, validated tar archives only; implement robust input validation and file integrity verification before tar processing; disable tar.replace functionality where unnecessary; implement application-level monitoring and alerting for process hangs or resource exhaustion; consider sandboxing tar processing operations to isolated processes with resource limits.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Ubiquitous
bundled with npm and a transitive dependency across the Node.js ecosystem
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor GitHub VulDB

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 Yes
EPSS 0.3%
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
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-2013-4660 MEDIUM POC
6.8 Jun 28

The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Liberty Linux 10 Fixed
SUSE Liberty Linux 8 Fixed
SUSE Liberty Linux 9 Fixed
SLES15-SP5-CHOST-BYOS-SAP-CCloud Affected
SLES15-SP6-CHOST-BYOS Affected

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