CVE-2026-24842 node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal

High 8.2 Published Updated

Attackers can exploit a path traversal flaw in node-tar to create hardlinks to arbitrary files, potentially leading to data modification or code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-24842?

CVE-2026-24842 is a high-severity path traversal vulnerability in isaacs node-tar, published on 28 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

node-tar,a Tar for Node.js, contains a vulnerability in versions prior to 7.5.7 where the security check for hardlink entries uses different path resolution semantics than the actual hardlink creation logic. This mismatch allows an attacker to craft a malicious TAR archive that bypasses path traversal protections and creates hardlinks to arbitrary files outside the extraction directory. Version 7.5.7 contains a fix for the issue.

Weakness: CWE-59, CWE-22

Which versions are affected by CVE-2026-24842?

2 open source packages ship an affected version, including tar. It affects 1 product.

PackageAffectedFixed in
tar npmAll versions7.5.7
tar npmAll versions7.5.7
Linux distribution packages (1)
pnpm openSUSE:TumbleweedAll versions10.32.1-1.1

Products include Isaacs Tar.

How do I fix CVE-2026-24842?

Upgrade tar to 7.5.7 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-24842 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-24842 exists.

Sources

Also known as CLEANSTART-2026-RV26689, CLEANSTART-2026-WI35354, DEBIAN-CVE-2026-24842, ECHO-60e5-49eb-41f5, GHSA-34x7-hfp2-rc4v, MINI-27cj-2277-vcqf and 27 more.

Is CVE-2026-24842 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free