Skip to main content

node-tar CVE-2026-29786

HIGH
Path Traversal (CWE-22)
2026-03-07 security-advisories@github.com GHSA-qffp-2rhf-9h96
8.2
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft tar with hardlink target 'C:../path'
  2. Delivery
    Deliver archive to victim app
  3. Exploit
    Victim calls tar.x() on Windows
  4. Execution
    Drive-relative path escapes extraction dir
  5. Persist
    Overwrite file outside cwd
  6. Impact
    Tamper or persist via written 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

Exploitation requires (1) the target running node-tar earlier than 7.5.10 on Windows, where drive-relative paths like 'C:../target.txt' are resolved against the current directory, and (2) the victim application extracting an attacker-supplied tar archive via tar.x() (the UI:P / passive user-interaction element). The malicious archive must contain a hardlink entry with a drive-relative link target. Exploitation is limited by being Windows-specific (the documented escape relies on Windows drive-relative semantics, so default Linux/macOS extraction is not known to be affected) and by requiring the attacker to control the archive content being unpacked; no host authentication is needed (PR:N), but local extraction of attacker-supplied input is mandatory (AV:L).

Impact

Signals are mixed and point to a real-but-niche issue rather than a mass-exploitation event. The vendor CVSS 4.0 score is 8.2 (High) with AV:L/AC:L/AT:N/PR:N/UI:P and high integrity impact (VI:H/SI:H), reflecting that exploitation requires a victim to extract an attacker-controlled archive locally rather than a remote network attack. EPSS is very low at 0.02% (4th percentile), and the issue is absent from CISA KEV, indicating no evidence of widespread active exploitation. Publicly available exploit code exists (GHSA-qffp-2rhf-9h96), which raises the practical likelihood of opportunistic exploitation. The key limiting factor is platform: the documented vector ('C:../') is Windows-specific drive-relative path handling, so Linux/macOS deployments are likely unaffected even though the CPE does not encode an OS constraint - verify platform scope before deprioritizing. Net: prioritize for Windows-based Node.js services that process untrusted archives; lower urgency elsewhere.

Exploit ScenarioDerived

An attacker crafts a tar archive containing a hardlink entry whose target is a drive-relative path like 'C:../../Users/victim/startup/run.bat', then delivers it as a plugin, dependency, upload, or backup file. When a Windows-based Node.js application calls tar.x() to extract it, node-tar resolves the drive-relative target outside the extraction directory and overwrites a sensitive file, enabling persistence or tampering. Public proof-of-concept material accompanies the GitHub advisory, lowering the barrier to reproduction.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – Jun 30, 2026

Arbitrary file overwrite in node-tar before 7.5.10 lets a malicious tar archive write files outside the intended extraction directory on Windows by embedding a hardlink whose target uses a drive-relative path such as 'C:../target.txt'. The flaw triggers during ordinary tar.x() extraction, so any Node.js application that unpacks untrusted archives on Windows is exposed. Publicly available exploit code exists via the GitHub Security Advisory, though EPSS exploitation probability is very low (0.02%) and it is not listed in CISA KEV.

Earlier versions of this analysis (4)
v4 Jun 30, 2026 - 04:58 cvss changed CVSS 8.2

Arbitrary file overwrite outside the extraction directory in node-tar (npm package 'tar') versions <= 7.5.9 lets an attacker who supplies a malicious archive clobber files outside the intended cwd during a normal tar.x() extraction. The flaw stems from a hardlink/symlink whose target uses a Windows drive-relative path such as C:../target.txt; despite the Windows-looking syntax it is reachable on all platforms because node-tar parses paths with win32 logic. Publicly available exploit code exists (GHSA-qffp-2rhf-9h96 PoC), it is fixed in 7.5.10, and EPSS is very low (0.02%) with no CISA KEV listing.

v3 Jun 30, 2026 - 04:58 cvss changed CVSS 8.2

Arbitrary file overwrite outside the extraction directory in node-tar (npm 'tar') before version 7.5.10 lets an attacker-controlled archive plant a hardlink (or symlink) whose drive-relative target like 'C:../target.txt' escapes the chosen cwd during a normal tar.x() extraction. Because the unpack logic checks for '..' segments before stripping the 'C:' drive root, the '..' is reintroduced after the root is removed, resolving the link one or more directories above the extraction root. Publicly available exploit code exists (GHSA-qffp-2rhf-9h96 includes a working PoC), but EPSS is very low (0.02%) and it is not in CISA KEV, so no public exploit identified as actively exploited at time of analysis.

v2 Jun 30, 2026 - 04:58 cvss changed CVSS 8.2

File overwrite outside the extraction directory in node-tar before 7.5.10 allows a malicious archive to create a hardlink whose target uses a Windows drive-relative path such as C:../target.txt, escaping the intended cwd during a normal tar.x() extraction (CWE-22 path traversal). Any Node.js application on Windows that extracts attacker-supplied tar archives is affected; publicly available exploit code exists via the GitHub Security Advisory, though EPSS is very low (0.02%) and there is no public exploit identified as actively used.

v1 Mar 12, 2026 - 21:55 CVSS 6.3

node-tar is a full-featured Tar for Node.js. Prior to version 7.5.10, tar can be tricked into creating a hardlink that points outside the extraction directory by using a drive-relative link target such as C:../target.txt, which enables file overwrite outside cwd during normal tar.x() extraction. [CVSS 6.3 MEDIUM]

RemediationAI

Vendor-released patch: upgrade node-tar to 7.5.10 or later (fix commit https://github.com/isaacs/node-tar/commit/7bc755dd85e623c0279e08eb3784909e6d7e4b9f; advisory https://github.com/isaacs/node-tar/security/advisories/GHSA-qffp-2rhf-9h96). Because 'tar' is frequently a transitive dependency, run 'npm ls tar' to find all paths and use package resolutions/overrides to force the patched version across the dependency tree. Until you can patch, avoid extracting untrusted archives on Windows hosts; if extraction of untrusted input is unavoidable, run it inside a sandboxed or least-privilege process/container so a file overwrite outside cwd has limited reach, and consider stripping/rejecting hardlink entries or post-validating that no extracted path resolves outside the target directory - note these controls add processing overhead and may break legitimate archives that rely on hardlinks. Red Hat advisory: https://access.redhat.com/security/cve/CVE-2026-29786.

Affected Packages

npm tar fix: 7.5.10

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

node-tar (npm package 'tar', maintained by isaacs) is one of the most widely used tar implementations in the Node.js ecosystem and underpins package installation, archive handling, and build tooling. The root cause is CWE-22 (improper limitation of a pathname to a restricted directory / path traversal). node-tar normally sanitizes link and entry paths to keep extraction within the current working directory, but its path-normalization did not account for Windows drive-relative path semantics: a target like 'C:../target.txt' is neither an absolute path nor leading-slash-rooted, yet Windows resolves it relative to the current directory on drive C:, escaping the extraction root. Because the escape rides on a hardlink entry, the extractor follows it and writes through to a location outside cwd. The affected CPE is cpe:2.3:a:isaacs:tar:*:*:*:*:*:node.js:*:* for all versions prior to 7.5.10.

Know when Tar 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

Vendor (github) PRIMARY 8.2 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L
vuln.today AI 6.1 MEDIUM

Requires a victim to extract an attacker-supplied archive locally (AV:L, UI:R, PR:N); impact is file overwrite, so I:H and A:L with no confidentiality loss.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L
Red Hat 8.6 HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
High
Subsequent system: Availability
Low

Lifecycle Timeline

9
Analysis Updated
Jun 30, 2026 - 05:00 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:58 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:58 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:58 vuln.today
v2 - CVSS changed
Severity Changed
Jun 30, 2026 - 03:24 NVD
MEDIUM HIGH
CVSS changed
Jun 30, 2026 - 03:24 NVD
6.3 (MEDIUM) 8.2 (HIGH)
PoC Detected
Mar 11, 2026 - 21:50 vuln.today
Public exploit code
Patch released
Mar 11, 2026 - 21:50 nvd
Patch available
CVE Published
Mar 07, 2026 - 16:15 nvd
MEDIUM 6.3

DescriptionCVE.org

node-tar is a full-featured Tar for Node.js. Prior to version 7.5.10, tar can be tricked into creating a hardlink that points outside the extraction directory by using a drive-relative link target such as C:../target.txt, which enables file overwrite outside cwd during normal tar.x() extraction. This issue has been patched in version 7.5.10.

Executive ViewAI

Why It Matters

node-tar versions prior to 7.5.10 allow attackers to overwrite arbitrary files on Windows systems by embedding malicious tar archives, creating risk of application compromise and unauthorized code execution. The vulnerability impacts all Windows-based Node.js applications that extract tar files from untrusted sources. A vendor patch is available and urgent deployment is warranted given the availability of exploit code.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Prevalence
High
core Node.js tar library, a near-ubiquitous npm dependency; bug is Windows-only
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

61
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)CVE.org

cpe:2.3:a:isaacs:tar:*:*:*:*:*:node.js:*:*

More in Tar

View all
CVE-2016-6321 HIGH POC
7.5 Dec 09

Directory traversal vulnerability in the safer_name_suffix function in GNU tar 1.14 through 1.29 might allow remote atta

CVE-2026-24842 HIGH POC
8.2 Jan 28

node-tar before version 7.5.7 contains a path traversal vulnerability where inconsistent path resolution between validat

CVE-2026-23745 HIGH POC
8.2 Jan 16

Arbitrary file overwrite and symlink poisoning in the node-tar library (versions <= 7.5.2) lets a malicious tar archive

CVE-2021-38511 HIGH POC
7.5 Aug 10

An issue was discovered in the tar crate before 0.4.36 for Rust. Rated high severity (CVSS 7.5), this vulnerability is r

CVE-2021-32804 HIGH
8.1 Aug 03

The npm package "tar" (aka node-tar) before versions 6.1.1, 5.0.6, 4.4.14, and 3.3.2 has a arbitrary File Creation/Overw

CVE-2026-26960 HIGH POC
7.1 Feb 20

Path traversal in node-tar versions 7.5.7 and earlier allows local attackers to read and write arbitrary files outside t

CVE-2024-28863 MEDIUM POC
6.5 Mar 21

node-tar is a Tar for Node.js. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authenti

CVE-2026-23950 MEDIUM POC
5.9 Jan 20

Symlink poisoning via race condition in node-tar up to version 7.5.3 allows attackers to exploit Unicode normalization o

CVE-2021-32803 HIGH
8.1 Aug 03

The npm package "tar" (aka node-tar) before versions 6.1.2, 5.0.7, 4.4.15, and 3.2.3 has an arbitrary File Creation/Over

CVE-2021-37701 HIGH
8.6 Aug 31

The npm package "tar" (aka node-tar) before versions 4.4.16, 5.0.8, and 6.1.7 has an arbitrary file creation/overwrite a

CVE-2018-20482 MEDIUM POC
4.7 Dec 26

GNU Tar through 1.30, when --sparse is used, mishandles file shrinkage during read access, which allows local users to c

CVE-2021-37713 HIGH
8.6 Aug 31

The npm package "tar" (aka node-tar) before versions 4.4.18, 5.0.10, and 6.1.9 has an arbitrary file creation/overwrite

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy