Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft chained-symlink tar archive
-
DeliveryDeliver to app using tar.x defaults
-
ExploitBypass lexical linkpath containment check
-
ExecutionCreate symlink resolving outside extraction dir
-
ImpactApp follows link, reads/writes external files
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 an application using node-tar 7.5.5 through 7.5.22 to call tar.x() (extract) with default options - no preservePaths or filter overrides - on an archive the attacker controls, and the archive must contain chained symlink entries where a '..' is routed through an earlier same-archive symlink (e.g. 'sub/up -> ..' then 'esc -> sub/up/..'). Critically, the damaging read/write only occurs when the consuming application subsequently FOLLOWS the extracted symlink; node-tar blocks writing a file or hardlink through that link during extraction itself (TAR_SYMLINK_ERROR). Limiting factors: the attacker must be able to supply the archive to the extraction routine; impact depends on post-extraction file access by the application; on Windows, creating symlinks normally requires elevated privileges (POC verified on Linux, expected to work on macOS). Versions 7.5.3-7.5.4 and 8.0.0+ reject the chain and are not affected. |
| Impact | Signals point to a real but conditional priority rather than an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC:L/VI:H/VA:L, score 7.2 HIGH) describes a network-delivered, low-complexity, no-privilege flaw whose impact is weighted toward integrity (VI:H) with lower confidentiality and availability impact, gated by passive user/application interaction (UI:P). The vuln.today decision label is 'this_week' - meaningful urgency, but not 'act_now' or 'emergency'. There is NO CISA KEV listing, so this is not confirmed as actively exploited, and NO EPSS score was provided, so statistical exploitation probability cannot be weighed here. A detailed, self-contained proof-of-concept IS published inside the GHSA-3wwj-8j6r-q339 advisory (with a measured version matrix), which raises practical risk and lowers the barrier to exploitation. The key tempering factor, stated explicitly in the advisory: node-tar itself blocks writing a file or hardlink THROUGH the escaping symlink during extraction (TAR_SYMLINK_ERROR); the escape only becomes damaging when the consuming application later reads or writes the extracted paths. Net: a high-severity, easily reproduced containment-bypass in an extremely widely deployed library, but real-world impact depends on application behavior after extraction, and active exploitation is not confirmed. |
| Exploit ScenarioDerived | An attacker uploads a crafted tar archive (e.g. to a build pipeline, package importer, or file-processing service) containing chained symlinks such as 'sub/up -> ..' and 'esc -> sub/up/..'; node-tar 7.5.5-7.5.22 collapses the '..' lexically, misses the intermediate on-disk symlink, and extracts 'esc' so it resolves outside the extraction directory, up to '/' with enough nesting. When the application later reads or writes the extracted path, it discloses or modifies files outside the extraction root with the application's privileges. A working proof-of-concept and remote-read deployment example are published in the GHSA advisory, so exploitation is well-documented; the low attack complexity (AC:L) and lack of required privileges make it straightforward against vulnerable default (tar.x) configurations. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Symlink containment bypass in node-tar 7.5.5 through 7.5.22 allows a crafted tar archive to make tar.x() create a symbolic link that resolves outside the extraction directory, so any application that later follows that link can read or overwrite files outside the intended root with its own privileges. The bug is a regression of the containment shipped in 7.5.3/7.5.4: because '..' is collapsed lexically before earlier same-archive symlinks are considered, a chain such as 'sub/up -> ..' followed by 'esc -> sub/up/..' passes both linkpath checks while the kernel resolves the result above the extraction root (deeper nesting reaches '/'). Exploitation requires the attacker to control the archive and the consuming application to follow the extracted link after extraction - node-tar itself still rejects writing a file or hardlink through the link during unpack - and no confirmed in-the-wild exploitation is reported, although the vendor advisory ships a self-contained reproduction script; the vendor rates it 7.2 via a CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:P with high integrity impact), the independent assessment scores it CVSS 3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L, and the issue is fixed in 8.0.0.
RemediationAI
Vendor-released patch: upgrade to node-tar 8.0.0, which rejects linkpaths containing '..' after a named path portion and normalizes entry paths before computing the link directory (commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d, release https://github.com/isaacs/node-tar/releases/tag/v8.0.0, advisory https://github.com/isaacs/node-tar/security/advisories/GHSA-3wwj-8j6r-q339). If upgrading cannot be done immediately, note that the damaging read or write only happens when the consuming application follows the extracted link - node-tar still raises TAR_SYMLINK_ERROR when an archive tries to write a file or hardlink through it - so the practical interim control is to refuse archives whose SymbolicLink entries carry a '..' after a named path component (or to skip SymbolicLink entries via the extract filter option), accepting that legitimate archives using relative symlinks will start failing; additionally re-validate any post-extraction path with a realpath check confined to the extraction root before reading or writing it, and run extraction into a directory or container from which escaping to the host filesystem is not possible. No mitigation changes the fact that 8.0.0 is the complete fix, and note that symlink creation on Windows normally requires elevated privileges, while Linux (PoC verified) and macOS are expected to be exposed.
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 is the widely used tar archive library for Node.js (cpe:2.3:a:isaacs:node-tar), and the flaw is a path-traversal/link-following class issue (CWE-22, also tracked as CWE-59) in the extraction pipeline. Two checks in src/unpack.ts (dist/commonjs/unpack.js) both reason about link targets lexically on tar paths: the [STRIPABSOLUTEPATH] escape check builds the target with path.posix.join(entryDir, linkpath) and path.posix.normalize() and rejects results starting with '..'; the [SYMLINK] handler resolves the target with path.resolve() before passing it to [ENSURE_NO_SYMLINK], which only lstat()s the normalized components. Once an earlier entry in the same archive has materialized a real symlink on disk, lexical normalization no longer matches kernel path resolution: 'sub/up/..' normalizes to 'sub' (a plain directory) while the kernel walks the symlink 'sub/up' first and then applies '..', landing in the parent of cwd. The relaxation that permits '..' inside a linkpath was introduced in 7.5.5 (commit e9a1ddb, PR #450); 7.5.3 and 7.5.4 rejected any '..' and are not affected. The 8.0.0 fix (commit 23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d) rejects any target where '..' appears after a named path portion and normalizes entry.path before computing its dirname, with regression tests covering chains placed before and after the escaping link, entry paths ending in '/.' and '/./', and backslashes in directory names. It is the same impact model as earlier advisories GHSA-8qq5-rm4j-mr97 (the containment this regresses), GHSA-83g3-92jg-28cx (whose [SYMLINK] check the normalization also bypasses) and GHSA-9ppj-qmqm-q256 (non-POSIX drive-relative escape); hardlink-only escapes such as GHSA-qffp-2rhf-9h96 and GHSA-34x7-hfp2-rc4v are a different code path.
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
Crafted archive is attacker-supplied with no authentication (PR:N) and low complexity, but a victim application must extract and then follow the link (UI:R); integrity impact is high (writes outside root), confidentiality and availability lower.
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.5 until 8.0.0, tar.x incorrectly validates symbolic link targets when an archive contains chained symbolic links. An attacker who can supply a crafted archive can cause extraction to create a symbolic link that resolves outside the extraction directory. If the application subsequently follows the link, it may disclose or modify files outside that directory with the application's privileges. This issue is fixed in version 8.0.0.
Articles & Coverage 1
Technical POC Analysis
CWE-22 (path traversal), tagged CWE-59 (link following) by the advisory.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity flaw in the widely used node-tar library (versions 7.5.5-7.5.22) could enable attackers to craft malicious tar archives that, when extracted by an application and later accessed, allow unauthorized reading or overwriting of files outside the intended directory. This impacts any product or service that processes untrusted tar files, potentially leading to data leakage or system compromise. Leadership should prioritize remediation to prevent potential security incidents and maintain customer trust.
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-140458
GHSA-3wwj-8j6r-q339
NVD
CVE.org
Exploit-DB