Skip to main content

node-tar EUVDEUVD-2026-140458

| CVE-2026-140250 HIGH
Path Traversal (CWE-22)
2026-12-01 GitHub_M GHSA-3wwj-8j6r-q339
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
    Craft chained-symlink tar archive
  2. Delivery
    Deliver to app using tar.x defaults
  3. Exploit
    Bypass lexical linkpath containment check
  4. Execution
    Create symlink resolving outside extraction dir
  5. Impact
    App follows link, reads/writes external files

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 an application using node-tar 7.5.5 through 7.5.22 to call tar.x() (extract) with default options - no preservePaths or filter overrides - on an archive the attacker controls, and the archive must contain chained symlink entries where a '..' is routed through an earlier same-archive symlink (e.g. 'sub/up -> ..' then 'esc -> sub/up/..'). Critically, the damaging read/write only occurs when the consuming application subsequently FOLLOWS the extracted symlink; node-tar blocks writing a file or hardlink through that link during extraction itself (TAR_SYMLINK_ERROR). Limiting factors: the attacker must be able to supply the archive to the extraction routine; impact depends on post-extraction file access by the application; on Windows, creating symlinks normally requires elevated privileges (POC verified on Linux, expected to work on macOS). Versions 7.5.3-7.5.4 and 8.0.0+ reject the chain and are not affected.

Impact

Signals point to a real but conditional priority rather than an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC:L/VI:H/VA:L, score 7.2 HIGH) describes a network-delivered, low-complexity, no-privilege flaw whose impact is weighted toward integrity (VI:H) with lower confidentiality and availability impact, gated by passive user/application interaction (UI:P). The vuln.today decision label is 'this_week' - meaningful urgency, but not 'act_now' or 'emergency'. There is NO CISA KEV listing, so this is not confirmed as actively exploited, and NO EPSS score was provided, so statistical exploitation probability cannot be weighed here. A detailed, self-contained proof-of-concept IS published inside the GHSA-3wwj-8j6r-q339 advisory (with a measured version matrix), which raises practical risk and lowers the barrier to exploitation. The key tempering factor, stated explicitly in the advisory: node-tar itself blocks writing a file or hardlink THROUGH the escaping symlink during extraction (TAR_SYMLINK_ERROR); the escape only becomes damaging when the consuming application later reads or writes the extracted paths. Net: a high-severity, easily reproduced containment-bypass in an extremely widely deployed library, but real-world impact depends on application behavior after extraction, and active exploitation is not confirmed.

Exploit ScenarioDerived

An attacker uploads a crafted tar archive (e.g. to a build pipeline, package importer, or file-processing service) containing chained symlinks such as 'sub/up -> ..' and 'esc -> sub/up/..'; node-tar 7.5.5-7.5.22 collapses the '..' lexically, misses the intermediate on-disk symlink, and extracts 'esc' so it resolves outside the extraction directory, up to '/' with enough nesting. When the application later reads or writes the extracted path, it discloses or modifies files outside the extraction root with the application's privileges. A working proof-of-concept and remote-read deployment example are published in the GHSA advisory, so exploitation is well-documented; the low attack complexity (AC:L) and lack of required privileges make it straightforward against vulnerable default (tar.x) configurations.

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

Symlink containment bypass in node-tar 7.5.5 through 7.5.22 allows a crafted tar archive to make tar.x() create a symbolic link that resolves outside the extraction directory, so any application that later follows that link can read or overwrite files outside the intended root with its own privileges. The bug is a regression of the containment shipped in 7.5.3/7.5.4: because '..' is collapsed lexically before earlier same-archive symlinks are considered, a chain such as 'sub/up -> ..' followed by 'esc -> sub/up/..' passes both linkpath checks while the kernel resolves the result above the extraction root (deeper nesting reaches '/'). Exploitation requires the attacker to control the archive and the consuming application to follow the extracted link after extraction - node-tar itself still rejects writing a file or hardlink through the link during unpack - and no confirmed in-the-wild exploitation is reported, although the vendor advisory ships a self-contained reproduction script; the vendor rates it 7.2 via a CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:P with high integrity impact), the independent assessment scores it CVSS 3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L, and the issue is fixed in 8.0.0.

RemediationAI

Vendor-released patch: upgrade to node-tar 8.0.0, which rejects linkpaths containing '..' after a named path portion and normalizes entry paths before computing the link directory (commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d, release https://github.com/isaacs/node-tar/releases/tag/v8.0.0, advisory https://github.com/isaacs/node-tar/security/advisories/GHSA-3wwj-8j6r-q339). If upgrading cannot be done immediately, note that the damaging read or write only happens when the consuming application follows the extracted link - node-tar still raises TAR_SYMLINK_ERROR when an archive tries to write a file or hardlink through it - so the practical interim control is to refuse archives whose SymbolicLink entries carry a '..' after a named path component (or to skip SymbolicLink entries via the extract filter option), accepting that legitimate archives using relative symlinks will start failing; additionally re-validate any post-extraction path with a realpath check confined to the extraction root before reading or writing it, and run extraction into a directory or container from which escaping to the host filesystem is not possible. No mitigation changes the fact that 8.0.0 is the complete fix, and note that symlink creation on Windows normally requires elevated privileges, while Linux (PoC verified) and macOS are expected to be exposed.

Affected VersionsENISA

node-tar 7.5.5, < 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 used tar archive library for Node.js (cpe:2.3:a:isaacs:node-tar), and the flaw is a path-traversal/link-following class issue (CWE-22, also tracked as CWE-59) in the extraction pipeline. Two checks in src/unpack.ts (dist/commonjs/unpack.js) both reason about link targets lexically on tar paths: the [STRIPABSOLUTEPATH] escape check builds the target with path.posix.join(entryDir, linkpath) and path.posix.normalize() and rejects results starting with '..'; the [SYMLINK] handler resolves the target with path.resolve() before passing it to [ENSURE_NO_SYMLINK], which only lstat()s the normalized components. Once an earlier entry in the same archive has materialized a real symlink on disk, lexical normalization no longer matches kernel path resolution: 'sub/up/..' normalizes to 'sub' (a plain directory) while the kernel walks the symlink 'sub/up' first and then applies '..', landing in the parent of cwd. The relaxation that permits '..' inside a linkpath was introduced in 7.5.5 (commit e9a1ddb, PR #450); 7.5.3 and 7.5.4 rejected any '..' and are not affected. The 8.0.0 fix (commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d) rejects any target where '..' appears after a named path portion and normalizes entry.path before computing its dirname, with regression tests covering chains placed before and after the escaping link, entry paths ending in '/.' and '/./', and backslashes in directory names. It is the same impact model as earlier advisories GHSA-8qq5-rm4j-mr97 (the containment this regresses), GHSA-83g3-92jg-28cx (whose [SYMLINK] check the normalization also bypasses) and GHSA-9ppj-qmqm-q256 (non-POSIX drive-relative escape); hardlink-only escapes such as GHSA-qffp-2rhf-9h96 and GHSA-34x7-hfp2-rc4v are a different code path.

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

Crafted archive is attacker-supplied with no authentication (PR:N) and low complexity, but a victim application must extract and then follow the link (UI:R); integrity impact is high (writes outside root), confidentiality and availability lower.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/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 - 18:11 cve.org
HIGH 7.2

DescriptionCVE.org

node-tar is a tar archive manipulation library for Node.js. From 7.5.5 until 8.0.0, tar.x incorrectly validates symbolic link targets when an archive contains chained symbolic links. An attacker who can supply a crafted archive can cause extraction to create a symbolic link that resolves outside the extraction directory. If the application subsequently follows the link, it may disclose or modify files outside that directory with the application's privileges. This issue is fixed in version 8.0.0.

Technical POC Analysis

CWE-22 (path traversal), tagged CWE-59 (link following) by the advisory.

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 high-severity flaw in the widely used node-tar library (versions 7.5.5-7.5.22) could enable attackers to craft malicious tar archives that, when extracted by an application and later accessed, allow unauthorized reading or overwriting of files outside the intended directory. This impacts any product or service that processes untrusted tar files, potentially leading to data leakage or system compromise. Leadership should prioritize remediation to prevent potential security incidents and maintain customer trust.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
core Node.js tar library, tens of millions of weekly npm installs
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