Skip to main content

node-tar EUVDEUVD-2026-140449

| CVE-2026-140243 HIGH
Path Traversal (CWE-22)
2026-12-01 GitHub_M
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 tarball with SymbolicLink entry ending '/.'
  2. Delivery
    Victim application extracts it via tar.x() default options
  3. Exploit
    Trailing-'/.' bypasses linkpath escape check
  4. Execution
    Symlink planted pointing outside extraction directory
  5. Persist
    Consuming app reads or writes through link
  6. Impact
    Disclose or overwrite arbitrary outside 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

Exploitation requires: (1) an application using node-tar 7.5.5 up to but not including 8.0.0 that extracts attacker-controlled tarballs with tar.x()/tar.extract() - no non-default options are needed, the escape works with default options on every platform; and (2) that same application must subsequently read, serve, copy or rewrite the extracted files, because node-tar itself refuses to extract THROUGH the escaped link (TAR_SYMLINK_ERROR) - the escape is the symlink itself, and impact is only realized when the consuming application follows it. The specific trigger is a SymbolicLink entry whose path ends in a trailing '/.' component (e.g. 'a/b/l/.'), which causes the 7.5.5 'linkpath must resolve inside cwd' check to measure the target from the wrong directory and accept it with no warning. Limiting factors: the victim app must handle untrusted archives AND touch the extracted tree (passive user interaction, UI:P); applications that extract but never read/serve/copy/rewrite the files, or that are on <7.5.5 or >=8.0.0, are not affected.

Impact

This is a genuine, actionable priority rather than a paper-high CVSS issue, but its exploitability hinges entirely on how the consuming application uses the extracted files. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) describes a network-reachable, low-complexity flaw needing no privileges, but UI:P (passive interaction) reflects that a victim application must both extract an attacker-supplied tarball with tar.x()/tar.extract() AND then read, serve, copy or rewrite the extracted tree - node-tar alone only plants the symlink. SSVC aligns with a measured, non-panic posture: Exploitation=poc (not active exploitation), Automatable=no (each target requires the victim app to touch the escaped link), Technical Impact=partial. There is no CISA KEV listing and no EPSS score was provided, so there is no evidence of in-the-wild or widespread automated exploitation. However, a complete, demonstrated proof-of-concept is embedded in the GHSA advisory (with per-version test results), so exploit knowledge is fully public and the barrier to weaponization is low. Net: the vuln.today 'this_week' decision label is consistent with the signals - patch within the week, not an emergency, driven by a real public PoC and high product prevalence rather than by active exploitation.

Exploit ScenarioDerived

An attacker submits a malicious tarball to an application that extracts it with node-tar's default tar.x() - for example an upload/import feature or a package/plugin installer. The archive contains a SymbolicLink entry whose path ends in '/.' (e.g. 'a/b/l/.') with a linkpath like '../../../target.txt', which bypasses the 7.5.5 linkpath-escape check and creates a symlink pointing outside the extraction directory on any platform. When the application subsequently reads, serves, copies or rewrites that file, it discloses or overwrites an arbitrary file outside the extraction root (e.g. .npmrc, SSH keys, config); a full working PoC with demonstrated output is published 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

Symlink escape in node-tar 7.5.5 through 7.5.23 (fixed in 8.0.0) lets a crafted tarball create a symbolic link that points outside the extraction directory using default options on every platform. A SymbolicLink entry whose path ends in a trailing '/.' component (for example 'a/b/l/.') causes the 'linkpath must resolve inside cwd' check introduced in 7.5.5 to measure the target one directory deeper than where the link is actually created, so an escaping linkpath such as '../../../target.txt' is accepted silently with no warning. Impact is realized only when the consuming application later reads, serves, copies or rewrites the extracted tree, at which point it can be redirected to an arbitrary file outside the extraction directory for disclosure (credentials, .npmrc, SSH keys) or overwrite; node-tar itself still refuses to extract through the escaped link. SSVC records publicly available exploit code, and a working proof-of-concept is published in the upstream advisory; priority is 'this_week', and the issue is not listed in CISA KEV.

RemediationAI

Upgrade to node-tar 8.0.0, the vendor-released fix, which normalizes the entry path before computing the link's directory and rejects any linkpath containing '..' after a named path portion (fix commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d, release https://github.com/isaacs/node-tar/releases/tag/v8.0.0, advisory https://github.com/isaacs/node-tar/security/advisories/GHSA-wq85-w9p7-pgrm). If an immediate upgrade is not possible, the actionable compensating control is to stop trusting extracted symlinks: filter or reject SymbolicLink entries before extraction (for example via a filter/onentry hook) and, after extraction, resolve each extracted path with fs.realpath and refuse to read, serve, copy or rewrite anything whose resolved location falls outside the intended extraction root - the trade-off is that rejecting symlinks breaks legitimate archives that rely on them, and realpath checks add latency and must be applied by every consumer of the extracted tree. Note that node-tar already refuses to extract *through* an escaped link (TAR_SYMLINK_ERROR) and a later File entry at the same path will not write through it, so applications that never follow links created from untrusted archives carry substantially less exposure, though the escaping link is still created.

Affected VersionsENISA

node-tar 7.5.5, < 8.0.0

Affected Packages

euvd node_tar fix: 8.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in 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 (maintained by isaacs). The flaw is a path traversal class issue (CWE-22, also tracked as CWE-59 improper link resolution) in the linkpath validation branch of src/unpack.ts under the STRIPABSOLUTEPATH handling. The 7.5.5 hardening computed the link's parent directory with path.posix.dirname(entry.path) without first normalizing entry.path. For an entry path of 'a/b/l/.', dirname returns 'a/b/l', so joining '../../../target.txt' with that directory normalizes to 'target.txt' and appears in-bounds, while the kernel actually creates the link at path.resolve(cwd, 'a/b/l/.') = cwd/a/b/l, i.e. one level shallower, so the same relative target lands at cwd/../target.txt. Each additional trailing '/.' component ('a/b/l/./.') is accepted the same way. The upstream fix normalizes entry.path before taking dirname (so 'x/.' creates link 'x') and additionally rejects any linkpath containing '..' after a named path portion, because any named component may itself be a symlink whose parent the '..' would traverse. The accompanying regression tests cover the trailing '/.' variants, the '/./' variant, nested variants, and backslash-in-directory-name cases, while preserving legitimate linkpaths that keep a leading '..' inside the extraction directory. CPE data confirms the affected package as isaacs:node-tar; EUVD lists the vulnerable range as 7.5.5 up to, but not including, 8.0.0.

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

Remote attacker-supplied archive with no privileges (PR:N), but the victim app must extract and then access the escaped link (UI:R); primary impact is integrity via arbitrary outside-file overwrite (I:H) with limited disclosure (C:L).

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 - 17:48 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, there is a symlink escape from the extraction directory via a trailing /. in the entry path. Any application that extracts attacker-supplied tarballs with tar.x() / tar.extract() and then reads, serves, copies or rewrites the extracted files can be pointed at an arbitrary file outside the extraction directory. This issue is fixed in version 8.0.0.

Executive ViewAI

Why It Matters

CVE-2026-140243 is a high-severity symlink escape vulnerability in node-tar 7.5.5 through 7.5.23 that allows crafted tarballs to create symbolic links pointing outside the extraction directory. This affects any application that processes untrusted archives, potentially exposing sensitive credentials or enabling arbitrary file overwrite when the extracted content is later accessed. Leadership should prioritize remediation because exploitation code is publicly available and the impact could extend to critical systems and data.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
near-universal npm dependency, used by npm itself across Node.js ecosystem
Social Media
1
Sightings
Data Quality
5 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
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