Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted tar archive to victim
-
Deliverynode-tar <8.0.0 extracts nested symlink entries
-
Exploitlexical '..'-after-symlink check bypassed, link planted outside root
-
Executiondownstream consumer reads/serves/copies the extracted tree
-
Impactfollows planted symlink to disclose arbitrary 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 that (1) a victim extracts an attacker-supplied tar archive using node-tar prior to 8.0.0; (2) the archive uses the two-stage nested-symlink construction (e.g. 's1' -> '.', then 's2' -> 's1/../secret.txt', optionally repeating 's1/' to climb further) so the kernel resolves the earlier symlink before applying '..', while node-tar's path.resolve-based STRIPABSOLUTEPATH/linkpath check collapses '..' lexically and accepts it; and (3) a later consumer of the extracted tree - a package installer, build or CI system, file server, or archive previewer - reads, serves, copies, or archives the directory and follows the planted symlink. Limiting factors: only arbitrary file READ is possible; hardlinks through the planted link and subsequent node-tar writes through it are blocked; the direct form ('../secret.txt') is rejected with TAR_ENTRY_ERROR; and disclosure depends entirely on that secondary consumer action, so node-tar extraction alone does not leak data. The only complete fix stated by the vendor is upgrading to 8.0.0. |
| Impact | Signals are moderate and partly conflicting. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, score 7.2) implies easy, low-complexity remote exploitation, but it maps impact as VI:H/VC:L/VA:L - integrity-high - which contradicts the mechanism: node-tar only plants a symlink pointing outside the extraction root, and the actual payoff is arbitrary file READ (confidentiality) via a later consumer, while hardlinks and writes through the planted link remain blocked. The vendor advisory's own estimate (CVSS 3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N = 5.9) is the more faithful reading: confidentiality impact, high complexity (two-stage nested-symlink construction plus a downstream consumer that follows the link), and required interaction. No EPSS score and no KEV listing 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). A full working proof-of-concept reproduction is published in the GHSA advisory, so exploitability is demonstrated even though exploitation is not confirmed in the wild. Net: a legitimate patch-this-week issue - real and PoC-demonstrated - but not an emergency, and its impact is arbitrary file read gated on a second consumer following the planted link, not direct code execution or write. |
| Exploit ScenarioDerived | An attacker publishes or supplies a crafted tar archive containing two symlink entries - 's1' pointing to '.' and 's2' pointing to 's1/../secret.txt' - which node-tar's lexical linkpath check accepts even though the kernel resolves 's2' outside the extraction root. After a victim extracts the archive with node-tar <8.0.0, a later consumer (a package installer, build/CI step, file server, or archive previewer) that reads, serves, copies, or archives the extracted tree follows the planted symlink and discloses an arbitrary file outside the root. A public proof-of-concept reproduction demonstrating the bypass is included in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Path traversal in node-tar (the npm 'tar' library) through 7.5.22 lets a crafted archive plant a symlink that resolves outside the extraction root, enabling arbitrary file read once a later consumer reads, serves, copies, or archives the extracted tree. The issue requires user interaction (a victim extracting an attacker-supplied archive) and disclosure depends on that secondary consumer following the planted link - extraction alone does not leak data; hardlinks through the link and subsequent node-tar writes through it remain blocked. Fixed in 8.0.0; a public reproduction script accompanies the upstream advisory, and it is not confirmed as weaponized exploit code. Severity is scored 7.2 under CVSS 4.0 by the CNA, while the independent assessment reaches CVSS 3.1 5.9 (AV:N/AC:H/PR:N/UI:R/C:H/I:N/A:N) because exploitation is constrained by the multi-stage archive construction and the downstream consumer dependency.
RemediationAI
Upgrade node-tar to 8.0.0, which is the vendor-released fix and, per the upstream advisory, the only complete remediation: the release committed as 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d (https://github.com/isaacs/node-tar/releases/tag/v8.0.0) rejects any '..' appearing after a named path portion in a linkpath and normalizes entry paths ending in '/.' or '/./' before computing the link directory. Applications that consume node-tar indirectly should re-resolve their dependency tree (for example via npm overrides or lockfile updates) to force 8.0.0 or later, because the vulnerable code ships transitively inside larger tooling. Note that the limiting factors documented by upstream - rejection of the direct '../secret.txt' form, and blocking of hardlinks and node-tar writes through the planted link - do not remove the arbitrary-file-read exposure, since the residual outside-pointing symlink is still followed by any downstream consumer that reads, serves, copies, or archives the extracted tree; the vendor does not present a configuration-only workaround as an equivalent fix, and the advisory at https://github.com/isaacs/node-tar/security/advisories/GHSA-mhqm-9wj8-w7r4 should be tracked for any addendum.
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 unpack logic (src/unpack.ts) validated symlink targets lexically: it ran path.resolve(dirname, linkpath), which collapses '..' components purely as strings without following symlinks already created on disk. Because the kernel resolves symlinks before applying '..', an archive containing entry 1 's1 -> .' (accepted, since its target is the extraction root) followed by entry 2 's2 -> s1/../secret.txt' (lexically resolving to <cwd>/secret.txt, also accepted) produces a link that on disk points to <cwd>/../secret.txt - outside the root - and repeating 's1/' climbs further. This is CWE-22 (path traversal) combined with CWE-59 (link following), and it bypasses the linkpath containment added for GHSA-8qq5-rm4j-mr97 and related advisories. The upstream commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d changes the check to reject any '..' that appears after a named path portion (only leading '..' is permitted), and normalizes entry.path before taking its dirname so that paths ending in '/.' or '/./' resolve to the directory where the link is actually created. The added regression tests cover '..' following earlier, later, and nested symlinks, entry paths ending in '/.' and '/./', and backslashes in directory names; they also confirm that leading '..' components that stay within the extraction directory remain legal. The direct form ('../secret.txt') was already rejected with TAR_ENTRY_ERROR, and hardlinks through the planted link plus writes routed through 's2/' were already blocked before the fix - the residual impact is a planted outside-pointing symlink that a downstream reader follows.
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
Archive is attacker-supplied over the network (AV:N), but the two-stage construction plus a downstream consumer following the link makes it AC:H/UI:R; impact is arbitrary file read only, so C:H and I:N/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, the STRIPABSOLUTEPATH linkpath containment check uses path.resolve and collapses parent components without following an earlier archive-created symlink. A second symlink can therefore be planted inside the extraction root while pointing outside it. A later consumer that reads, serves, copies, or archives the extracted tree can follow the link and read an arbitrary file. Hardlinks and subsequent node-tar writes through the planted link remain blocked. This issue is fixed in version 8.0.0.
Articles & Coverage 1
Technical POC Analysis
CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), cross-classified CWE-59.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-140244 is a high-severity path traversal vulnerability in node-tar versions through 7.5.22. If an employee extracts a maliciously crafted archive, a planted symlink could allow sensitive files to be read by downstream systems. This affects any team using node-tar in build pipelines, artifact handling, or file-processing services, and could lead to unintended data exposure requiring leadership attention.
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-140450
GHSA-mhqm-9wj8-w7r4
NVD
CVE.org
Exploit-DB