Skip to main content

node-tar EUVDEUVD-2026-140456

| CVE-2026-140249 HIGH
Path Traversal (CWE-22)
2026-12-01 security-advisories@github.com GHSA-4pf9-5fpx-xmr6
7.2
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply crafted tarball to application
  2. Delivery
    Extract via tar.x() with default options
  3. Exploit
    In-archive symlink chain escapes extraction dir unwarned
  4. Execution
    Application later reads/writes the extracted file
  5. Impact
    Arbitrary file read/write as extracting user

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 that a vulnerable application extract an attacker-controlled tarball using tar.x() with default options on node-tar 7.5.5 through 7.x, AND that the application subsequently read or write the extracted files by name - tar itself does not write through the planted symlink, so the escape only becomes an arbitrary read/write when normal post-extraction file access follows the link. The attack is self-contained in the archive (a directory plus a chained symlink such as x/y -> '..' and a link -> 'x/y/../target'), fits within the 100-byte ustar linkpath field, and raises no warning. Key limiting factors defenders can rely on: applications that filter out Link/SymbolicLink entries for untrusted input are not affected (npm itself filters links from package artifacts), the victim must actively process an untrusted archive (UI:P), and only the 7.5.5-<8.0.0 version range is impacted (7.5.4 and earlier reject these links or are covered by prior advisories).

Impact

This is a genuine but conditional priority rather than an internet-spraying emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L, 7.2) indicates a network-reachable, low-complexity flaw needing no privileges but requiring passive user interaction - namely that a victim application extract an attacker-supplied tarball. SSVC aligns and moderates the picture: Exploitation is 'poc' (a public proof-of-concept exists, not confirmed in-the-wild exploitation), Automatable is 'no' (exploitation depends on getting a malicious archive into a vulnerable extraction path, not mass-scannable), and Technical Impact is 'partial', consistent with the Low/High/Low impact split rather than total system compromise. There is no CISA KEV listing and no EPSS score supplied, so widespread automated exploitation is not evidenced - the vuln.today decision label is 'this_week', not act_now/emergency. The practical risk hinges on two facts from the advisory: tar itself does not write through the planted symlink, so impact is realized only when the application later reads or writes the extracted files, and applications that filter link entries for untrusted input (as the README advises and as npm itself does) are not affected. Net: real and worth prompt patching for any Node.js service that extracts untrusted archives on an affected 7.5.5-7.x version, but not a drop-everything internet-wide event.

Exploit ScenarioDerived

An attacker distributes a malicious tarball - for example an npm-style package artifact or a user-uploaded archive - that a Node.js application extracts with tar.x() using default options on an affected version. The archive uses an in-archive symlink chain (a directory plus symlinks such as x/y -> '..' and l -> 'x/y/../secret.txt') to leave a symlink inside the extraction directory that silently resolves to any path on the host; when the application subsequently reads or writes that extracted file it follows the link, yielding arbitrary file read and write as the extracting user. A full, runnable proof-of-concept is published in GHSA-4pf9-5fpx-xmr6, and SSVC records Exploitation as 'poc'.

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

Arbitrary file read and write as the extracting user becomes possible when node-tar 7.5.5 through 7.5.23 (every release before 8.0.0) extracts an attacker-supplied tarball: the archive plants symlinks inside the destination that resolve outside it, and any later read or write of those extracted paths by the application follows the link. The payload is small and silent - a directory plus a chained symlink such as x/y -> '..' and l -> 'x/y/../secret.txt', which fits in the 100-byte ustar linkpath field and raises no warning under default tar.x() options; a public proof-of-concept shipped with the advisory overwrites a file outside the extraction directory and resolves a link to /etc/hostname. This is a genuine but conditional priority rather than an internet-spraying emergency: the victim application must extract an untrusted archive and then touch the extracted files by name, tar itself never writes through the planted link, and applications that filter Link/SymbolicLink entries (as npm does for package artifacts) are not affected.

RemediationAI

Vendor-released patch: 8.0.0 - upgrade the tar dependency to 8.0.0 (npm install tar@8.0.0) and rebuild lockfiles so transitive consumers pick it up; the fix is in commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d and the release notes at https://github.com/isaacs/node-tar/releases/tag/v8.0.0, with details in GHSA-4pf9-5fpx-xmr6. Because 8.0.0 is a major version, test extraction behaviour before rolling it out, and note that downgrading to 7.5.3 or 7.5.4 is not a clean workaround since those releases are covered by earlier advisories. If an upgrade cannot be completed this cycle, apply the vendor-documented compensating control for untrusted input: filter out Link and SymbolicLink entries from archives before extraction (the approach the README recommends and that npm itself uses for package artifacts), accepting the trade-off that legitimate symlinks in those archives will be dropped and that callers must handle such archives some other way. Applications that never reopen extracted files by path name reduce their exposure, but since tar does not write through the planted link, that is a property to verify in each code path rather than a guaranteed mitigation.

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

The flaw is a path-traversal class (CWE-22, with CWE-59 link-following noted by the vendor) rooted in an inconsistency between the target node-tar validates and the target it actually writes. For a SymbolicLink entry, STRIPABSOLUTEPATH checks the lexically normalized linkpath (x/y/../secret.txt normalizes to x/secret.txt, inside cwd) and ENSURE_NO_SYMLINK resolves the same path with path.resolve, which collapses 'y/..' before any check and therefore never notices that x/y is itself a symlink pointing at '..'. The link is then created with the raw linkpath, so the kernel resolves x/y first (landing in the parent of cwd) and only afterwards applies '..', producing a link in the extraction tree that points anywhere; repeating the x/y/ component eight times and following with ../ sixteen times reaches /etc/hostname. This is a regression introduced in 7.5.5 by the relaxation in PR #450 ('Allow unpacking symlinks that don't escape cwd'); 7.5.3 and 7.5.4 rejected any '..' in a linkpath, and versions at or below 7.5.2 are covered by GHSA-8qq5-rm4j-mr97. It shares the symlink chain demonstrated in GHSA-83g3-92jg-28cx (CVE-2026-26960), where the fix blocked the hardlink created through the chain but left the symlink itself in place. The fix commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d rejects a '..' that appears after any named path portion and normalizes entry.path before computing the link's parent directory, with a regression suite (test/symlink-linkpath-escape.test.ts) covering both async and sync extraction. The assessed vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L reflects that no privileges or prior authentication are needed, but a user must process the malicious archive and integrity impact dominates because writes are redirected to attacker-chosen files.

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) 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

Network-delivered malicious archive needs no privileges but requires a victim to extract it (UI:R); arbitrary file write drives I:H, with limited read/availability (C:L/A:L) matching SSVC 'partial'.

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).

CVSS VectorVendor: github

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:17 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 target escapes the extraction directory through an in-archive symlink chain. An attacker who supplies a tarball can make tar.x() with default options leave symlinks inside the extraction directory that point to any path on the system. tar itself does not write through them, but any later read or write of the extracted files by the application follows them: the demonstration overwrites a file outside the extraction directory and resolves a link to /etc/hostname. This gives arbitrary file read and write as the extracting user. This issue is fixed in version 8.0.0.

Executive ViewAI

Why It Matters

CVE-2026-140249 in node-tar (versions 7.5.5 through 7.5.23) allows an attacker-supplied tarball to plant symlinks that enable arbitrary file read and write outside the extraction directory, affecting any application that extracts untrusted archives and then accesses the extracted files by name. This poses a high risk to our build pipelines, package managers, and any service handling user-uploaded tarballs, as it could lead to data leakage, configuration tampering, or remote code execution via overwritten files. Leadership should prioritize patching because the vulnerability is easily exploitable with a small payload and a public proof-of-concept exists, though exploitation requires the specific extraction-and-access pattern.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
High
node-tar is a core, heavily-used Node.js library; only recent 7.5.5-7.x affected
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