Skip to main content

node-tar CVE-2026-140244

| EUVDEUVD-2026-140450 HIGH
Path Traversal (CWE-22)
2026-12-01 GitHub_M GHSA-mhqm-9wj8-w7r4
7.2
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Deliver crafted tar archive to victim
  2. Delivery
    node-tar <8.0.0 extracts nested symlink entries
  3. Exploit
    lexical '..'-after-symlink check bypassed, link planted outside root
  4. Execution
    downstream consumer reads/serves/copies the extracted tree
  5. Impact
    follows planted symlink to disclose arbitrary file

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

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

Exploitation Conditions

Requires that (1) a victim extracts an attacker-supplied tar archive using node-tar prior to 8.0.0; (2) the archive uses the two-stage nested-symlink construction (e.g. 's1' -> '.', then 's2' -> 's1/../secret.txt', optionally repeating 's1/' to climb further) so the kernel resolves the earlier symlink before applying '..', while node-tar's path.resolve-based STRIPABSOLUTEPATH/linkpath check collapses '..' lexically and accepts it; and (3) a later consumer of the extracted tree - a package installer, build or CI system, file server, or archive previewer - reads, serves, copies, or archives the directory and follows the planted symlink. Limiting factors: only arbitrary file READ is possible; hardlinks through the planted link and subsequent node-tar writes through it are blocked; the direct form ('../secret.txt') is rejected with TAR_ENTRY_ERROR; and disclosure depends entirely on that secondary consumer action, so node-tar extraction alone does not leak data. The only complete fix stated by the vendor is upgrading to 8.0.0.

Impact

Signals are moderate and partly conflicting. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, score 7.2) implies easy, low-complexity remote exploitation, but it maps impact as VI:H/VC:L/VA:L - integrity-high - which contradicts the mechanism: node-tar only plants a symlink pointing outside the extraction root, and the actual payoff is arbitrary file READ (confidentiality) via a later consumer, while hardlinks and writes through the planted link remain blocked. The vendor advisory's own estimate (CVSS 3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N = 5.9) is the more faithful reading: confidentiality impact, high complexity (two-stage nested-symlink construction plus a downstream consumer that follows the link), and required interaction. No EPSS score and no KEV listing are present in the input, so there is no evidence of active exploitation; the vuln.today Decision label is 'this_week' (not act_now/emergency). A full working proof-of-concept reproduction is published in the GHSA advisory, so exploitability is demonstrated even though exploitation is not confirmed in the wild. Net: a legitimate patch-this-week issue - real and PoC-demonstrated - but not an emergency, and its impact is arbitrary file read gated on a second consumer following the planted link, not direct code execution or write.

Exploit ScenarioDerived

An attacker publishes or supplies a crafted tar archive containing two symlink entries - 's1' pointing to '.' and 's2' pointing to 's1/../secret.txt' - which node-tar's lexical linkpath check accepts even though the kernel resolves 's2' outside the extraction root. After a victim extracts the archive with node-tar <8.0.0, a later consumer (a package installer, build/CI step, file server, or archive previewer) that reads, serves, copies, or archives the extracted tree follows the planted symlink and discloses an arbitrary file outside the root. A public proof-of-concept reproduction demonstrating the bypass is included in the GHSA advisory.

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

Path traversal in node-tar (the npm 'tar' library) through 7.5.22 lets a crafted archive plant a symlink that resolves outside the extraction root, enabling arbitrary file read once a later consumer reads, serves, copies, or archives the extracted tree. The issue requires user interaction (a victim extracting an attacker-supplied archive) and disclosure depends on that secondary consumer following the planted link - extraction alone does not leak data; hardlinks through the link and subsequent node-tar writes through it remain blocked. Fixed in 8.0.0; a public reproduction script accompanies the upstream advisory, and it is not confirmed as weaponized exploit code. Severity is scored 7.2 under CVSS 4.0 by the CNA, while the independent assessment reaches CVSS 3.1 5.9 (AV:N/AC:H/PR:N/UI:R/C:H/I:N/A:N) because exploitation is constrained by the multi-stage archive construction and the downstream consumer dependency.

RemediationAI

Upgrade node-tar to 8.0.0, which is the vendor-released fix and, per the upstream advisory, the only complete remediation: the release committed as 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d (https://github.com/isaacs/node-tar/releases/tag/v8.0.0) rejects any '..' appearing after a named path portion in a linkpath and normalizes entry paths ending in '/.' or '/./' before computing the link directory. Applications that consume node-tar indirectly should re-resolve their dependency tree (for example via npm overrides or lockfile updates) to force 8.0.0 or later, because the vulnerable code ships transitively inside larger tooling. Note that the limiting factors documented by upstream - rejection of the direct '../secret.txt' form, and blocking of hardlinks and node-tar writes through the planted link - do not remove the arbitrary-file-read exposure, since the residual outside-pointing symlink is still followed by any downstream consumer that reads, serves, copies, or archives the extracted tree; the vendor does not present a configuration-only workaround as an equivalent fix, and the advisory at https://github.com/isaacs/node-tar/security/advisories/GHSA-mhqm-9wj8-w7r4 should be tracked for any addendum.

Affected VersionsENISA

node-tar < 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 logic (src/unpack.ts) validated symlink targets lexically: it ran path.resolve(dirname, linkpath), which collapses '..' components purely as strings without following symlinks already created on disk. Because the kernel resolves symlinks before applying '..', an archive containing entry 1 's1 -> .' (accepted, since its target is the extraction root) followed by entry 2 's2 -> s1/../secret.txt' (lexically resolving to <cwd>/secret.txt, also accepted) produces a link that on disk points to <cwd>/../secret.txt - outside the root - and repeating 's1/' climbs further. This is CWE-22 (path traversal) combined with CWE-59 (link following), and it bypasses the linkpath containment added for GHSA-8qq5-rm4j-mr97 and related advisories. The upstream commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d changes the check to reject any '..' that appears after a named path portion (only leading '..' is permitted), and normalizes entry.path before taking its dirname so that paths ending in '/.' or '/./' resolve to the directory where the link is actually created. The added regression tests cover '..' following earlier, later, and nested symlinks, entry paths ending in '/.' and '/./', and backslashes in directory names; they also confirm that leading '..' components that stay within the extraction directory remain legal. The direct form ('../secret.txt') was already rejected with TAR_ENTRY_ERROR, and hardlinks through the planted link plus writes routed through 's2/' were already blocked before the fix - the residual impact is a planted outside-pointing symlink that a downstream reader follows.

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

Archive is attacker-supplied over the network (AV:N), but the two-stage construction plus a downstream consumer following the link makes it AC:H/UI:R; impact is arbitrary file read only, so C:H and I:N/A:N.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/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
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
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:49 cve.org
HIGH 7.2

DescriptionCVE.org

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, the STRIPABSOLUTEPATH linkpath containment check uses path.resolve and collapses parent components without following an earlier archive-created symlink. A second symlink can therefore be planted inside the extraction root while pointing outside it. A later consumer that reads, serves, copies, or archives the extracted tree can follow the link and read an arbitrary file. Hardlinks and subsequent node-tar writes through the planted link remain blocked. This issue is fixed in version 8.0.0.

Technical POC Analysis

CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), cross-classified CWE-59.

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

CVE-2026-140244 is a high-severity path traversal vulnerability in node-tar versions through 7.5.22. If an employee extracts a maliciously crafted archive, a planted symlink could allow sensitive files to be read by downstream systems. This affects any team using node-tar in build pipelines, artifact handling, or file-processing services, and could lead to unintended data exposure requiring leadership attention.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
node-tar is a top-tier npm dependency used 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

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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