Skip to main content

node-tar EUVDEUVD-2026-42308

| CVE-2026-59871 HIGH
Incorrect Type Conversion or Cast (CWE-704)
2026-07-08 GitHub_M GHSA-w8wr-v893-vjvp
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Craft PAX tar archive with all-digit path header
  2. Delivery
    Submit archive to target Node.js application
  3. Exploit
    node-tar src/pax.ts coerces path string to JavaScript number
  4. Execution
    normalizeWindowsPath() calls .split('/') on a Number
  5. Persist
    Uncaught TypeError thrown
  6. Impact
    Extraction process crashes (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Correct type conversion
Exploitation Conditions

The target application must use node-tar in a version prior to 7.5.18 and must process a tar archive containing a PAX extended header where the path or linkpath field is composed entirely of digits. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates no authentication is required, but this assumes the application exposes an archive extraction code path to unauthenticated network input - for example, a public file upload endpoint, a package registry endpoint, or a build system that fetches remote archives. Exploitation is limited by the requirement that attacker-controlled content reaches the PAX header parsing code in src/pax.ts; applications that only extract trusted, internally generated archives are not exploitable. The crash impact is further limited by the application's error handling: processes with uncaught exception handlers may degrade gracefully rather than terminate entirely.

Impact

The CVSS 3.1 base score of 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) reflects a low-complexity, unauthenticated, network-reachable denial of service with limited availability impact. The A:L rating is appropriate because the crash is scoped to the tar extraction operation and process rather than the entire system. No EPSS data was provided, so exploitation probability cannot be quantified beyond inference from the CVSS metrics. The vulnerability is not listed in the CISA KEV catalog and no public proof-of-concept code has been identified. The source tags include 'Information Disclosure,' which directly conflicts with the CVSS C:N metric - this discrepancy is unresolved and should be verified against the vendor advisory GHSA-w8wr-v893-vjvp; at time of analysis, available evidence supports availability impact only. Real-world priority depends heavily on deployment context: applications that accept and extract tar archives from untrusted external sources (file upload endpoints, CI/CD pipelines processing remote artifacts, package management tooling) face meaningful denial-of-service exposure, while applications that only process internally generated archives have negligible risk.

Exploit ScenarioDerived

An attacker crafts a tar archive in PAX format where the extended header sets the path field to an all-digit value such as '12345'. When this archive is submitted to a web application or CI pipeline that uses node-tar prior to 7.5.18 to extract uploaded archives, the library coerces the path to the JavaScript number 12345, causing normalizeWindowsPath() to invoke .split('/') on a Number object, throwing an uncaught TypeError that crashes the extraction process and potentially the surrounding Node.js worker. No public proof-of-concept has been identified, but the attack primitive is trivially constructable by any attacker with knowledge of the PAX tar format.

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 unauthenticated network-reachable attackers to crash Node.js processes by submitting crafted tar archives containing all-digit PAX header path or linkpath values. The library incorrectly coerces these string values to JavaScript numbers in src/pax.ts, causing downstream path handling (normalizeWindowsPath(entry.path).split('/')) to throw an uncaught TypeError when it attempts to call a string method on a numeric value. No public exploit code has been identified at time of analysis, and this vulnerability is not listed in the CISA KEV catalog.

RemediationAI

Upgrade node-tar to version 7.5.18 or later; this is the vendor-released patch that addresses the type coercion defect in src/pax.ts. The fix commit is available at https://github.com/isaacs/node-tar/commit/e02a4e9e013c4be95302e2eb2047a942b883c27b and the release is at https://github.com/isaacs/node-tar/releases/tag/v7.5.18. For applications that cannot immediately upgrade, a compensating control is to validate or sanitize tar archive inputs before passing them to node-tar - specifically, reject or strip PAX headers with all-digit path or linkpath values at the application boundary before extraction. Additionally, wrapping extraction calls in try/catch blocks and implementing process-level crash recovery (e.g., via a process manager such as pm2 or cluster) will limit the denial-of-service radius, though this does not eliminate the underlying defect. Restricting file upload endpoints to non-tar MIME types is a more aggressive but effective workaround where tar support is not required.

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 (cpe:2.3:a:isaacs:node-tar:*:*:*:*:*:*:*:*) is the reference tar archive manipulation library for Node.js, widely consumed as a transitive dependency of npm tooling and countless npm packages. The defect is rooted in CWE-704 (Incorrect Type Conversion or Cast): in src/pax.ts, PAX extended header values that consist entirely of digits are coerced from strings to JavaScript numbers rather than being preserved as strings. PAX headers are a POSIX.1-2001 extension to the tar format that carry arbitrary key-value metadata, including override values for path and linkpath. When a downstream function such as normalizeWindowsPath() receives an entry.path that is a Number rather than a String, the subsequent .split('/') call throws a TypeError because Number objects do not have a split() method. This uncaught exception propagates and terminates the extraction operation, potentially crashing the hosting process depending on error-handling posture.

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 MEDIUM
NVD 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.3 MEDIUM

Network-reachable extraction endpoint requires no auth; impact is partial DoS (process crash) only, with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
Severity Changed
Jul 10, 2026 - 19:07 NVD
MEDIUM HIGH
CVSS changed
Jul 10, 2026 - 19:07 NVD
5.3 (MEDIUM) 7.5 (HIGH)
Patch available
Jul 08, 2026 - 17:01 EUVD
CVE Published
Jul 08, 2026 - 15:25 cve.org
MEDIUM 5.3

DescriptionNVD

node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.18, node-tar coerces all-digit PAX path and linkpath values in src/pax.ts to JavaScript numbers, causing downstream path handling such as normalizeWindowsPath(entry.path).split('/') to throw an uncaught TypeError. 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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
High
core transitive dependency of npm CLI and many Node.js packages
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· derived
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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

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