Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted tar archive to extracting app
-
DeliveryExtraction plants in-root symlink then nested '..' symlink
-
ExploitLexical check passes but link resolves outside root
-
ExecutionDownstream consumer follows planted link
-
ImpactAccess file outside extraction directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Requires default configuration preservePaths:false on node-tar 7.5.22 through <8.0.0, and a crafted archive containing two ordered SymbolicLink entries: first an in-root symlink, then a second symlink whose linkpath traverses that symlink followed by a '..' parent component (e.g. a/b -> ../x then a/c -> b/../..). The escape is NOT realized by node-tar's own extraction - it only plants a link that lexically appears in-root; access outside the root occurs only when a later consumer follows or serves the extracted link, so a downstream dereference is a required precondition. Limiting factors: affects only the 7.5.22-7.x branch below 8.0.0; node-tar's existing checks may still block a subsequent member writing outside the root; and the concrete read/write impact depends entirely on the consuming application's behavior. |
| Impact | Signals point to a real but conditional priority rather than an emergency. The provided CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:P, score 7.2 High) indicates a remotely reachable, unauthenticated flaw whose realization depends on passive user/consumer interaction (UI:P), with high integrity impact (VI:H) and lower confidentiality/availability (VC:L/VA:L). This is consistent with CWE-59 (link following): the defect is a lexical-vs-filesystem symlink containment bypass, not a direct memory-safety or RCE issue. The vuln.today decision label is 'this_week' (not act_now/emergency). No EPSS score, no CISA KEV listing, and no confirmed widespread exploitation were supplied - so there is no evidence of active exploitation. A public PoC is included in the GHSA advisory, but it only demonstrates the target-containment bypass (reading a marker the PoC itself created in its own temp directory) and explicitly does not claim node-tar writes outside the root during extraction; real-world impact depends on a downstream consumer that later follows or serves the planted link. Conflict to note: the input Tags label this 'Information Disclosure', whereas the CVSS impact is weighted toward integrity (VI:H), and the advisory author self-suggested only medium severity - verify the dominant impact against the actual consumer behavior. Net: a widely-deployed library (high patch urgency due to footprint) but a bounded, interaction-dependent exploit path rather than a wormable network flaw. |
| Exploit ScenarioDerived | An attacker supplies a crafted tar archive to an application that uses node-tar (7.5.22 to <8.0.0, default preservePaths:false) to extract untrusted archives and later follows or serves files from the extracted tree. The archive plants an in-root symlink and a second symlink whose stored target resolves through that symlink plus a parent component, so the extracted link stays under the root but points outside it; when a later consumer dereferences the link it reads (or writes, depending on the consumer) a file outside the extraction directory. A working PoC exists in the GHSA advisory but demonstrates only the containment bypass, not an out-of-root write by node-tar itself. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
node-tar 7.5.22 through the 7.x line below 8.0.0 can be made to plant a symlink whose real target sits outside the extraction root: with the default preservePaths:false, link targets are validated lexically, but the OS resolves an earlier extracted in-root symlink before applying a trailing '..' component, so a later consumer that follows the planted link reads or serves files beyond the intended directory. The bypass is not realized by node-tar's own extraction - a downstream dereference of the extracted link is a required precondition - and unauthenticated remote attackers must first get a crafted archive extracted on the target (CVSS 4.0 7.2; independent assessment CVSS 3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L). There is no KEV listing and no confirmed active exploitation; the advisory contains a public proof-of-concept reference (a local reproduction script that reads a marker outside the output directory) that is not verified as working exploit code, and the issue is fixed by upgrading to 8.0.0.
RemediationAI
Vendor-released patch: upgrade node-tar to 8.0.0, the first fixed version; the fix commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d rejects any linkpath in which a '..' component follows a named path portion and normalizes the entry directory before validation, and the release is published at https://github.com/isaacs/node-tar/releases/tag/v8.0.0 with details in advisory https://github.com/isaacs/node-tar/security/advisories/GHSA-6wwr-g865-f46r. If upgrading cannot be done immediately, compensating controls must be applied at the consuming application, since the escape only materializes when something later follows or serves the planted link: pre-screen incoming archives and reject SymbolicLink or HardLink entries whose linkpath contains a named component followed by '..' (the exact rule the fix implements), at the cost of refusing some legitimate archives that use such relative targets; or refuse to resolve links originating from an extraction tree at all, for example by realpath-checking every path before read or serve and rejecting anything whose canonical path falls outside the extraction root, at the cost of breaking workflows that legitimately depend on symlinked content; extracting into a throwaway directory that is deleted after processing also limits exposure but does not remove it if the consumer reads files before cleanup. Note that node-tar's own extraction checks may still prevent a later archive member from writing outside the root, so the practical risk is dictated by downstream dereference behavior.
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 lives in the extraction logic of node-tar's src/unpack.ts, a Node.js library (CPE cpe:2.3:a:isaacs:node-tar) used to unpack tar archives. It is a CWE-59 improper link resolution problem caused by a mismatch between lexical path normalization and filesystem semantics: STRIPABSOLUTEPATH accepts a SymbolicLink linkpath containing '..' when path.posix.normalize(path.posix.join(entryDir, linkpath)) appears to remain inside the extraction root, and SYMLINK derives its components via path.resolve(dirname(entry.absolute), entry.linkpath), which collapses 'b/..' before ENSURE_NO_SYMLINK inspects each component; LINK then writes the original unsimplified linkpath with fs.symlink. With entries a/b -> ../x followed by a/c -> b/../.., the check reduces the second target to the extraction root and never examines a/b, while the real filesystem first follows a/b to x and then climbs two parents, landing outside the tree. The upstream commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d closes this by rejecting any linkpath where a '..' part follows the first named component (emitting TAR_ENTRY_ERROR 'linkpath contains '..' after a path portion'), and by normalizing entry.path before taking its dirname; the accompanying regression suite covers '..' after earlier, later and nested symlinks, entry paths ending in '/.' or '/./', and backslashes in directory names, while still allowing leading '..' that stays inside the directory. Earlier versions than 7.5.22 were not assessed by the reporter, and node-tar's existing checks may still block a subsequent archive member from writing outside the root - the concrete read/write impact depends entirely on how the consuming application follows or serves the extracted links.
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
Attacker only supplies an archive (PR:N) and crafting is deterministic (AC:L), but the escape requires a later consumer to follow the planted link (UI:R); integrity-weighted impact (I:H) per the link-escape class.
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. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.
Blast Radius
ecosystem impact- 23,668 npm packages depend on tar (6,248 direct, 17,545 indirect)
Ecosystem-wide dependent count for version 7.5.22.
Articles & Coverage 1
Technical POC Analysis
CWE-59 (Improper Link Resolution Before File Access).
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-140248 is a high-severity vulnerability in node-tar versions 7.5.22 through 7.x, which could allow a crafted archive to plant a symlink that, when later dereferenced by a downstream consumer, permits reading or serving files outside the intended extraction directory. Since node-tar is a ubiquitous dependency in JavaScript/Node.js build and deployment pipelines, any organization using affected versions could face data exposure or integrity risks if untrusted archives are processed and their contents are subsequently served or accessed, making this a supply chain concern for development and operations teams.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-140455
GHSA-6wwr-g865-f46r
NVD
CVE.org
Exploit-DB