Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted tarball to application
-
DeliveryExtract via tar.x() with default options
-
ExploitIn-archive symlink chain escapes extraction dir unwarned
-
ExecutionApplication later reads/writes the extracted file
-
ImpactArbitrary 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'. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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'.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 1
Executive ViewAI
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
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
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-140456
GHSA-4pf9-5fpx-xmr6
NVD
CVE.org
Vulnrichment
Exploit-DB