Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted tar archive (npm pkg/upload)
-
DeliveryVictim extracts with default options
-
ExploitBackslash separator differential bypasses containment check
-
ExecutionEscaping symlink planted pointing outside cwd
-
ImpactConsumer 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 1
Executive ViewAI
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.
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-140452
GHSA-hqgx-p3r3-2cfg
NVD
CVE.org
Vulnrichment
Exploit-DB