Skip to main content

node-tar CVE-2026-140247

| EUVDEUVD-2026-140453 HIGH
Path Traversal (CWE-22)
2026-12-01 GitHub_M GHSA-gvrf-jx37-rjv5
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 extractor
  2. Delivery
    Plant in-archive symlink then '..' traversal entry
  3. Exploit
    Lexical linkpath check bypassed, symlink created inside root
  4. Execution
    Downstream consumer follows planted link
  5. Impact
    Read or overwrite files outside extraction directory

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

Triggering requires an attacker-supplied tar archive extracted via tar.x() / Unpack / UnpackSync under DEFAULT options (both async and sync paths are affected per the advisory) - no special configuration or feature flag is needed. The payload requires a specific structure: an in-archive SymbolicLink component (e.g., l1 -> '.') followed by a sibling symlink whose linkpath routes a '..' through that earlier symlink; depth above the root is controlled by the number of in-archive directories. Authentication is NOT required (PR:N). The decisive LIMITING factor is that extraction alone only creates the planted symlink inside the root; the out-of-root read or write materializes only when a subsequent consumer of the extracted tree (serving files, reading a manifest, writing build output) follows the link, and acts with the extracting user's privileges. Entry ordering and parallel extraction do not matter because symlink targets resolve lazily at follow time.

Impact

This is a credible but conditional priority rather than a drop-everything emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) describes a low-complexity, unauthenticated issue requiring passive user/consumer interaction, scoring 7.2 (High). SSVC aligns and tempers this: Exploitation=poc (not active), Automatable=no, Technical Impact=partial - meaning a working concept exists but mass, hands-off exploitation is not expected, and the vuln.today decision label is 'this_week', not 'act_now' or 'emergency'. The key nuance that lowers immediate risk: exploitation is a two-stage affair - extraction only plants a symlink; the actual out-of-root read/write occurs only when a later consumer follows that link, so impact depends on how the extracted tree is used downstream. No CISA KEV listing and no EPSS score were provided, so there is no evidence of widespread or active exploitation, and the Automatable=no signal argues for targeted rather than opportunistic abuse. Counterbalancing all of this is prevalence: node-tar is one of the most heavily depended-upon libraries in the Node.js ecosystem (it is used by npm itself), so the population of exposed consumers is enormous. Net: patch promptly within the week per the decision label, prioritizing services that extract untrusted archives and then read/write the extracted tree, but this is not a confirmed in-the-wild crisis.

Exploit ScenarioDerived

An attacker supplies a crafted tar archive to a service that extracts it with node-tar's default options (e.g., an uploaded backup, a published package, or a CI build artifact). The archive plants an in-archive symlink followed by a '..' component (l1 -> '.', esc -> 'l1/../outside.txt') that passes the lexical escape check but resolves outside the extraction root; when the application subsequently serves, reads, or writes the extracted tree, it reaches files above the root with the extracting user's privileges. A detailed, manually-verified reproduction is published in the GHSA-gvrf-jx37-rjv5 advisory, so a public PoC reference exists, though it is not distributed as packaged weaponized exploit code.

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

node-tar before 8.0.0 can be induced to plant symlinks inside the extraction directory whose targets actually resolve outside that root, because the linkpath escape check is purely lexical while the kernel resolves an earlier in-archive symlink component first. Any application that extracts attacker-supplied tarballs with default options and then reads, serves, or writes into the extracted tree can be tricked into touching files outside the extraction root with the extracting user's privileges; extraction is unauthenticated, but the out-of-root effect only materializes when a downstream consumer follows the planted link. Exploitation requires user interaction to extract the crafted archive, a public proof of concept is documented in the upstream advisory, and no confirmed active exploitation is known.

RemediationAI

Upgrade to node-tar 8.0.0, the vendor-released fixed version, which enforces the corrected linkpath check and additionally normalizes entry directories and handles paths ending in '/.'; the fix commit is https://github.com/isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d and the release is documented at https://github.com/isaacs/node-tar/releases/tag/v8.0.0, with details in advisory GHSA-gvrf-jx37-rjv5. If immediate upgrade is not possible, avoid extracting untrusted archives with default options and instead validate archive entry metadata before extraction or treat extracted content as untrusted, keeping in mind that such filtering must run before links are followed and that any post-extraction consumer which follows links can still reach outside the root; the advisory notes that a proper fix requires inspecting existing path components with lstat rather than normalizing lexically, so no complete library-level workaround exists for affected versions.

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 implements tar handling for Node.js; the flaw lives in src/unpack.ts, where STRIPABSOLUTEPATH sanitizes a SymbolicLink linkpath by comparing path.posix.normalize(join(dirname(entry.path), linkpath)) against the root, and SYMLINK builds components using path.resolve, which collapses '..' before any lstat is performed. Both operations are lexical, so a linkpath such as l1/../outside.txt normalizes to a harmless-looking outside.txt even though l1 is an earlier symlink in the same archive (for example l1 -> '.'), and the kernel resolves l1/.. as the parent of that symlink's target. The same applies to deeper chains, where each in-archive directory level moves the escape one level higher. Because symlink targets resolve lazily at follow time, entry ordering and parallel async extraction are irrelevant, and no warning is emitted for these forms while the direct '../outside.txt' form is still rejected. This is a CWE-22 path traversal variant of the earlier symlink-poisoning advisories (GHSA-9ppj-qmqm-q256, GHSA-8qq5-rm4j-mr97, GHSA-83g3-92jg-28cx) that also carries CWE-59 link-following characteristics, and it was identified through automated variant analysis and manually verified. The upstream fix rejects any '..' segment that appears after a named path portion and normalizes the entry directory before link creation, and also corrects entry paths ending in '/.' or '/./'.

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

Untrusted archive is typically delivered remotely and extracted without auth (AV:N/AC:L/PR:N); escape is realized only when a later consumer follows the link (UI:R), enabling arbitrary file read and overwrite (C:H/I:H), no direct availability impact.

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

DescriptionCVE.org

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, a crafted archive can create a SymbolicLink inside the extraction directory whose linkpath contains a previously created symlink component followed by a parent traversal. STRIPABSOLUTEPATH evaluates the target lexically, but the filesystem follows the earlier symlink first, so the planted link target resolves outside the extraction root. A later consumer that follows the link can read or write outside that root. This issue is fixed in version 8.0.0.

Executive ViewAI

Why It Matters

A high-severity flaw in the widely used node-tar library (versions before 8.0.0) lets a crafted archive write or read files outside its intended extraction directory, potentially compromising systems that unpack untrusted tarballs in build pipelines, package managers, or file-ingestion services. Leadership should care because any team shipping Node.js applications that process externally supplied archives inherits this risk, and such flaws have historically been a stepping stone to broader environment compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
core Node.js tar library and a transitive dependency of npm itself
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment GHSA CIRCL GitHub

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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

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