Skip to main content

node-tar EUVDEUVD-2026-140451

| CVE-2026-140245 HIGH
Path Traversal (CWE-22)
2026-12-01 GitHub_M GHSA-jmj2-9c5q-vw73
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
    Victim extracts archive with node-tar default options
  3. Exploit
    Entry path ending in '/.' bypasses linkpath containment check
  4. Execution
    Symlink silently planted outside extraction directory
  5. Persist
    Consumer app later writes/reads through path
  6. Impact
    File write or disclosure outside destination

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 the victim application to extract an attacker-controlled tar archive using node-tar in the vulnerable range 7.5.5-7.5.22 (fixed in 8.0.0); the trigger is a SymbolicLink entry whose entry path ends in '/.' (or '/./'), which shifts path.posix.dirname one level shallower so a leading '..' in the linkpath is absorbed by the check while the kernel resolves the link from cwd and escapes. It works with default options, emits no warning, and also works with strip:1 (the pacote/npm path), PAX 'path', and GNU 'L' entries. Key LIMITING factors: passive user interaction is required (an archive must be processed, UI:P); only versions 7.5.5-7.5.22 are affected (7.5.4 and 8.0.0 reject it); and the escape alone does not write outside the destination - node-tar refuses to follow the planted symlink (symlink parents rejected, O_NOFOLLOW on writes), so a harmful outside read/write occurs only if a downstream consumer later traverses the extracted path.

Impact

This is a genuine but conditional path-traversal/symlink-containment bypass (CWE-22) in node-tar, triggerable with default options and emitting no warning, which raises its practical concern above a theoretical edge case. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC:L/VI:H/VA:L, score 7.2) indicates a remotely deliverable, low-complexity, unauthenticated issue that nonetheless requires passive user interaction (processing a crafted archive). No EPSS score and no CISA KEV entry 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), consistent with a prioritized-but-not-fire-drill posture. A detailed proof of concept is included in the GHSA advisory and was reproduced against the published npm package tar@7.5.22, so exploit knowledge is public. The single most important mitigating signal, stated explicitly by the advisory, is that the outside write is consumer-mediated: node-tar itself refuses to follow the planted symlink (mkdir rejects symlink parents, file writes use O_NOFOLLOW), so exploitation only causes real harm if a downstream caller later writes or reads through the extracted path. The affected range is also narrow (7.5.5 through <8.0.0, a regression introduced by the #450 fix), limiting the exposed population to that specific band of versions. Net: a real priority to patch for anyone on 7.5.5-7.5.22, but the absence of KEV/EPSS signals plus the consumer-mediated impact model argue against treating it as emergency widespread exploitation.

Exploit ScenarioDerived

An attacker publishes or supplies a crafted tar archive containing a single SymbolicLink entry whose path ends in '/.' (e.g. path 'x/.', linkpath '../outside/secret.txt'); when a victim application extracts it with node-tar 7.5.5-7.5.22 using default options, a symlink is silently created pointing outside the extraction directory with no warning. A working PoC exists and was reproduced against the npm-published tar@7.5.22 (also effective with strip:1, PAX path, and GNU L entries). Because delivery is over the network and complexity is low but passive user interaction is required (the victim must extract the archive), impact is realized only when the consuming application subsequently reads or writes through the escaped path.

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 escape in node-tar 7.5.5 through 7.5.22 allows a crafted tar archive to create a link pointing outside the extraction directory with default options and without emitting any warning, because an entry path ending in '/.' moves the validation base one level shallower so a leading '..' is absorbed by the containment check while the kernel still resolves the link from the extraction root. The defect is a regression introduced by the 7.5.5 relative-linkpath fix; version 7.5.4 and the fixed 8.0.0 both reject the archive. Triggering it requires the victim application to extract attacker-supplied input (passive user interaction), and the resulting escape is consumer-mediated: node-tar refuses to follow the planted symlink itself, so a harmful outside read or write occurs only if a downstream consumer later traverses the extracted path; the advisory documents a proof-of-concept reproducer against the npm-published tar@7.5.22, and no confirmed active exploitation (CISA KEV) is indicated.

RemediationAI

Upgrade node-tar to 8.0.0 or later, which is the vendor-released patch and the only version where the validation base and the write base agree; install with npm install tar@8.0.0 and confirm the resolved version, since the advisory-specific regression range is 7.5.5 through 7.5.22 and version 7.5.4 already rejects the crafted entry. Details are in the vendor advisory at https://github.com/isaacs/node-tar/security/advisories/GHSA-jmj2-9c5q-vw73, the fixing commit at https://github.com/isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d, and the release notes at https://github.com/isaacs/node-tar/releases/tag/v8.0.0. If 8.0.0 cannot be adopted immediately, the trade-off is to pin back to 7.5.4, which rejects these archives with "linkpath contains '..'" but forfeits the #450 relative-linkpath fix that 7.5.5 introduced. Because the escape is consumer-mediated rather than an in-library write, downstream code that consumes extraction output should also not resolve or write through extracted symlinks, and should treat any extracted path whose normalised form ends in '/.' or '/./' as hostile before further processing; note that node-tar's own mkdir symlink-parent refusal and O_NOFOLLOW file writes are inherent protections that do not extend to callers writing through the extracted tree.

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 manipulation library for Node.js, packaged on npm as 'tar' and identified in the CPE data as isaacs:node-tar with a wildcard version range, so the version boundary rather than the CPE string determines exposure. The root cause is CWE-22 path traversal expressed as a mismatch between the path used for validation and the path used for the write: src/unpack.ts resolves a relative linkpath against path.posix.dirname(entry.path) around line 286, but the symlink is actually created at path.resolve(cwd, entry.path) around line 359. For an entry name ending in '/.' (or '/./'), dirname returns a base one level shallower than the directory the link is really created in, so a linkpath such as 'x/../outside/secret.txt' normalises to 'outside/secret.txt', passes the startsWith('../') containment check, and is then resolved by the kernel from cwd, landing outside the destination. The regression was introduced by commit e9a1ddb, the #450 relative-linkpath fix shipped in 7.5.5, and it affects 7.5.5 through 7.5.22; 7.5.4 rejected the same entry with "linkpath contains '..'". The upstream fix normalises entry.path before taking dirname so the check and the write agree, and additionally rejects any '..' that appears after a named path portion, since such a prefix could itself be a symlink. The advisory notes the bypass also works with strip:1 (the pacote/npm code path), PAX 'path' entries and GNU 'L' entries, and that it is distinct from GHSA-9ppj-qmqm-q256, which concerns a malicious linkpath string rather than the entry-path base computation. Impact is bounded by library internals: mkdir refuses symlink parents and file writes use O_NOFOLLOW, so node-tar's own subsequent entries cannot traverse the planted link, and the advisory explicitly does not claim an in-library write or npm RCE.

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

Archive delivered remotely (AV:N) and processed with default options (AC:L, PR:N) but the victim must extract it (UI:R); the link escapes the extraction boundary into the host filesystem (S:C) enabling out-of-tree file modification (I:H) and limited disclosure (C:L), with no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/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:51 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, symlink linkpath containment bypass via entry paths ending in '/.'. A crafted archive can create a symlink pointing outside the extraction directory using default options and without any warning. The affected security path includes [STRIPABSOLUTEPATH], linkpath, path.posix.dirname(entry.path). This issue is fixed in version 8.0.0.

Executive ViewAI

Why It Matters

CVE-2026-140245 is a high-severity path traversal vulnerability in the npm 'tar' library (versions 7.5.5 through 7.5.22) that could allow attackers to write files outside the intended extraction directory. Any product or service that processes untrusted tar archives is at risk, potentially leading to data corruption, unauthorized file modification, or further compromise depending on downstream usage. Leadership should prioritize patching because this library is widely used in build pipelines, package managers, and file-upload processing, amplifying organizational exposure.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
core npm tar library, dependency of npm/pacote, hundreds of millions of weekly downloads
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