node-tar <=7.5.2 allows arbitrary file overwrite via unsanitized linkpath
CVE-2026-23745 Published on January 16, 2026
node-tar Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization
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.
Vulnerability Analysis
CVE-2026-23745 can be exploited with local system access, requires user interaction and a small amount of user privileges. This vulnerability is considered to have a low attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2026-23745. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Type
What is a Directory traversal Vulnerability?
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CVE-2026-23745 has been classified to as a Directory traversal vulnerability or weakness.
Products Associated with CVE-2026-23745
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
isaacs node-tar:- Version < 7.5.3 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2026-23745
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| npm | tar | <= 7.5.2 | 7.5.3 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.