AploSec / Disclosures / CVE-2026-145489

Medium 6.5ReportedFixed in 2.1.6, 3.1.4CWE-59npm

tar-fs before 2.1.6 and 3.x before 3.1.4 Symlink Validation Bypass via Nested Symlinks

CVE-2026-145489 · published 2026-12-05

In plain words: this type of bug lets someone read or write files outside the folder they should be limited to (path traversal). A fixed release is listed.

Summary

CVE-2026-145489 affects tar-fs (npm) < 2.1.6, 3.0.0 to < 3.1.4: Symlink Validation Bypass via Nested Symlinks (CWE-59). Fixed in 2.1.6, 3.1.4. CVSS 3.1 base score 6.5 (Medium), assigned by VulnCheck. Published 2026-12-05 by VulnCheck. Credit: Zachariah Mithani (AploSec).

tar-fs before 2.1.6 and 3.x before 3.1.4 contains a path traversal vulnerability that allows attackers to escape the extraction directory by chaining symlinks with '..' segments. Attackers can supply a crafted tarball where later entries traverse through earlier symlinks, creating links outside the destination to write or read files.

Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

Remediation

An upstream fix is listed in 2.1.6, 3.1.4. Consult the linked advisory for affected release lines and the appropriate upgrade for your version.

References

Severity
Medium 6.5CVSS 3.1, scored by VulnCheck in the CVE record
Package
tar-fs
Ecosystem
npm
Affected
< 2.1.6, 3.0.0 to < 3.1.4
Fixed
2.1.6, 3.1.4
Weakness
CWE-59
CNA
VulnCheck
Credit
Zachariah Mithani (AploSec)finder