Skip to main content
EPSS 0.3%top 72%

CVE-2026-23745: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in isaacs node-tar

0
High
VulnerabilityCVE-2026-23745cvecve-2026-23745cwe-22gcve
Published: 01/16/2026 (01/16/2026, 22:00:08 UTC)
Source: CVE Database V5
Vendor/Project: isaacs
Product: node-tar

Description

node-tar is a Tar for Node.js. The node-tar library (<= 7.5.2) fails to sanitize the linkpath of Link (hardlink) and SymbolicLink entries when preservePaths is false (the default secure behavior). This allows malicious archives to bypass the extraction root restriction, leading to Arbitrary File Overwrite via hardlinks and Symlink Poisoning via absolute symlink targets. This vulnerability is fixed in 7.5.3.

CVSS v4.0

Score 8.2high

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N

Affected software

isaacs

node-tar

Affected versions
<7.5.3
node-tar
pkg:npm/node-tar
Affected versions
<7.5.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/13/2026, 16:31:18 UTC

Technical Analysis

The node-tar library versions up to 7.5.2 fail to properly sanitize the linkpath of hardlink and symbolic link entries during archive extraction when preservePaths is false. This improper limitation of pathname to a restricted directory (CWE-22) enables attackers to craft malicious tar archives that can overwrite arbitrary files or poison symbolic links on the filesystem. The vulnerability is addressed in node-tar version 7.5.3. Red Hat has rated this vulnerability as Important for its products using node-tar and has issued advisories detailing the impact and mitigation status.

Potential Impact

An attacker can create malicious tar archives that, when extracted, bypass intended security restrictions, leading to arbitrary file overwrite and symlink poisoning. This can result in unauthorized modification of critical files, potentially allowing code execution, bypassing security mechanisms, exposing sensitive data, or causing denial of service by corrupting important files. The CVSS 4.0 base score is 8.2 (high severity), reflecting high confidentiality and integrity impact with local attack vector and low complexity.

Mitigation Recommendations

A fix for this vulnerability is available in node-tar version 7.5.3. Users and vendors should upgrade to this version to remediate the issue. Red Hat advisories indicate that no suitable mitigation other than upgrading meets their criteria for ease of use and deployment. Therefore, upgrading to a fixed version is the recommended remediation. For Red Hat products, monitor official advisories for updates and apply patches when available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-01-15T15:45:01.958Z
Cvss Version
4.0
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-23745","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:18480","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:18868","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2900","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:3782","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19712","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6192","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2926","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:2144","vendor":"Red Hat"}]

Threat ID: 696ab9f0b22c7ad868fb1aa0

Added to database: 01/16/2026, 22:21:36 UTC

Last enriched: 08/13/2026, 16:31:18 UTC

Last updated: 09/10/2026, 19:46:22 UTC

Views: 756

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses