Skip to main content

node-tar CVE-2026-140246

| EUVDEUVD-2026-140452 HIGH
Path Traversal (CWE-22)
2026-12-01 GitHub_M GHSA-hqgx-p3r3-2cfg
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 (npm pkg/upload)
  2. Delivery
    Victim extracts with default options
  3. Exploit
    Backslash separator differential bypasses containment check
  4. Execution
    Escaping symlink planted pointing outside cwd
  5. Impact
    Consumer reads arbitrary host 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 a non-Windows host (Linux/macOS) - on Windows normalizeWindowsPath neutralizes the backslash and the flaw does not apply. A victim must extract an attacker-crafted/untrusted tar archive using node-tar <= 7.5.22 (< 8.0.0) with default tar.x() options (async or sync); no special configuration is needed. The archive must contain a directory entry whose name embeds literal backslashes plus a SymbolicLink whose linkpath uses backslash-padded '..' segments, exploiting that the containment check treats '\' as a separator while the kernel treats it as an ordinary filename character. LIMITING FACTORS: arbitrary write is NOT achievable - only an escaping symlink is planted, so the arbitrary-read payoff is realized only when a downstream consumer subsequently reads, copies, or serves files from the 'contained' extraction directory; targets must reside on the same filesystem; and Windows deployments and node-tar 8.0.0+ are not affected.

Impact

Signals point to a real but conditional priority. The SSVC framework reports Exploitation: poc, Automatable: no, Technical Impact: partial, and the vuln.today decision label is this_week (not act_now/emergency). A full, verified proof-of-concept exists in the GHSA advisory (confirmed end-to-end reading /etc/passwd), so exploitability is proven, yet there is no CISA KEV listing and no EPSS score was provided, so there is no evidence of widespread automated exploitation - consistent with Automatable: no, since each archive must be crafted and a downstream consumer must then read through the planted link. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) correctly conveys a remotely-delivered, low-complexity, no-privilege flaw gated only by a victim extracting the archive. CONFLICT TO NOTE: the supplied 4.0 vector sets VI:H (high integrity impact), but the advisory explicitly states arbitrary WRITE is NOT achieved (mkdir rejects symlinked parents, file writes unlink the symlink first, hardlinks reject '..') - the real realized impact is CONFIDENTIALITY (arbitrary host-file read), so the integrity weighting appears overstated and the confidentiality weighting (VC:L) understated. Net: a genuine supply-chain-relevant containment-escape worth patching promptly given node-tar's ecosystem reach, but it is an arbitrary-read/containment-escape, not a remote code execution or arbitrary-write primitive.

Exploit ScenarioDerived

An attacker publishes or uploads a crafted tar archive (e.g. an npm package or a user-supplied upload) that, when extracted on a Linux/macOS host with node-tar's default options, plants a SymbolicLink resolving outside the extraction directory. A full working PoC is public in the GHSA advisory and was confirmed end-to-end, including reading /etc/passwd. Because attack vector is network and complexity is low with no privileges required, the only gate is that a victim extracts the archive and some consumer later reads through the contained directory.

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

Symbolic link extraction in node-tar before 8.0.0 lets a crafted archive plant a link that resolves outside the extraction directory on Linux and macOS, so any downstream consumer that later reads, copies, or serves files from that directory is induced to read arbitrary host files. Default tar.x() extractions (async and sync) of untrusted archives are affected; Windows deployments are not, because backslash is normalized to a separator there. The reporter published a proof-of-concept confirmed end-to-end against tar 7.5.22 (including reading /etc/passwd), SSVC records exploitation only at PoC level with no automatable path, and the maintainers shipped a fix in 8.0.0, so the priority signal is 'this week' rather than an active-exploitation emergency.

RemediationAI

Vendor-released patch: 8.0.0 - upgrade node-tar to 8.0.0 (release https://github.com/isaacs/node-tar/releases/tag/v8.0.0, fix commit https://github.com/isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d, advisory https://github.com/isaacs/node-tar/security/advisories/GHSA-hqgx-p3r3-2cfg); since npm bundles its own copy of node-tar, also refresh npm and any Node.js distribution that ships it, and rebuild lockfiles so transitive copies are not pinned to a 7.x range. Expect a behavioural change: 8.0.0 rejects any linkpath containing '..' after a named path portion (for example 'x/y/../f' or 'A\B/../../x') and emits a TAR_ENTRY_ERROR warning, so archives that previously 'worked' will lose those symlink entries, while leading '..' that stays inside the extraction directory (e.g. '../../f') remains permitted. Where 8.0.0 cannot be adopted immediately, pre-scan untrusted archives before extraction and reject SymbolicLink headers whose linkpath contains a backslash or an interior '..', accepting that this breaks legitimate archives using such linkpaths and requires a header parser ahead of extraction. Independently of the library version, downstream consumers should resolve realpath for extracted entries and confirm containment before reading, copying, or serving them, since the reported impact requires such a consumer to follow the planted link.

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 containment logic for SymbolicLink entries is a purely lexical model that diverges from what the kernel does with the same string. In src/unpack.ts the linkpath is stripped and every backslash is replaced with '/' before the '..' segments are counted, so 'A\B' counts as two path segments; on non-Windows hosts normalizeWindowsPath is the identity function and fs.symlink is called with the raw linkpath, where a backslash is an ordinary filename character and 'A\B' is one segment. A linkpath such as 'A\B/../../x' therefore normalizes to 'x' for the check (believed inside cwd, allowed) while resolving from cwd/A\B through two '..' into the parent of cwd at creation time; escape depth equals the number of backslashes in the padding segment and saturates at '/', so any path on the same filesystem is reachable. The neighbouring guards do not catch this: ENSURE_NO_SYMLINK only rejects symlinks that already exist in the target path, and CHECKPATH validates entry.path rather than the linkpath. The advisory classifies this as CWE-22 with CWE-59 (link following); the upstream commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d abandons the divergent lexical model, rejecting any linkpath where a '..' appears after a named path portion (emitting TAR_ENTRY_ERROR) and deriving the entry directory from path.posix.dirname(path.posix.normalize(entry.path)). Symlink creation remains the only primitive node-tar provides here: mkdir rejects symlinked parent components, a file written at the symlink's own path unlinks it first, and hardlink entries reject '..', so arbitrary write is not achieved.

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.2 HIGH

Remote untrusted archive (AV:N), deterministic trigger (AC:L), default extraction needs no auth (PR:N) but a victim must extract it (UI:R); escaping the extraction boundary is S:C and arbitrary read drives C:H, while write is not achieved (I:L/A:N).

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

DescriptionCVE.org

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, on non-Windows hosts, SymbolicLink extraction applies Windows-style backslash separator semantics during the linkpath containment check but passes the raw linkpath to the filesystem, where a backslash is an ordinary filename character. A crafted archive can therefore plant a link inside the extraction directory that resolves to a host path outside it. A later consumer can read through the link, but node-tar does not itself establish an arbitrary-write impact. This issue is fixed in version 8.0.0.

Executive ViewAI

Why It Matters

A high-severity flaw (CVE-2026-140246) in the widely used node-tar library (versions prior to 8.0.0) allows a malicious archive to plant symbolic links that escape the intended extraction directory, enabling downstream consumers to expose arbitrary host files. Linux and macOS systems are affected, potentially compromising sensitive data such as credential files; leadership should prioritize remediation this week due to the availability of a public proof-of-concept.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
dependency of npm itself and a large fraction of the Node.js ecosystem
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