What’s Vulnerable › Vulnerabilities
CVE-2026-24842: node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal
- Severity: high (CVSS 8.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-01-28 · updated 2026-09-07
- Weakness: CWE-22
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.
Affected products
- isaacs node-tar: before 7.5.7 — fixed in 7.5.7
- Npm Tar: before 7.5.7 — fixed in 7.5.7
How to fix
Upgrade to a fixed version: isaacs node-tar 7.5.7; Npm Tar 7.5.7. Check the vendor advisory for mitigations.
References
- https://github.com/isaacs/node-tar/commit/f4a7aa9bc3d717c987fdf1480ff7a64e87ffdb46
- https://github.com/isaacs/node-tar/security/advisories/GHSA-34x7-hfp2-rc4v
- https://access.redhat.com/errata/RHSA-2026:18480
- https://access.redhat.com/errata/RHSA-2026:18868
- https://access.redhat.com/errata/RHSA-2026:2900
- https://access.redhat.com/errata/RHSA-2026:33371
- https://access.redhat.com/errata/RHSA-2026:5447
- https://access.redhat.com/errata/RHSA-2026:6192
- https://access.redhat.com/security/cve/CVE-2026-24842
- https://bugzilla.redhat.com/show_bug.cgi?id=2433645
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24842.json
Get alerted when CVE-2026-24842 or the next vulnerability affects your stack