# CVE-2026-145489: tar-fs before 2.1.6 and 3.x before 3.1.4 Symlink Validation Bypass via Nested Symlinks

Source: https://aplosec.si/cve/CVE-2026-145489/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-145489

Medium 6.5 · Reported · Fixed in 2.1.6, 3.1.4 · CWE-59 · npm

# 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

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/tar-fs-before-2.1.6-and-3-x-before-3.1.4-symlink-validation-bypass-via-nested-symlinks](https://www.vulncheck.com/advisories/tar-fs-before-2.1.6-and-3-x-before-3.1.4-symlink-validation-bypass-via-nested-symlinks)

- [Fix commithttps://github.com/mafintosh/tar-fs/commit/1a39c7dcaa88d595f3d14e8c56eddc890af2cc8c](https://github.com/mafintosh/tar-fs/commit/1a39c7dcaa88d595f3d14e8c56eddc890af2cc8c)

- [Fix commithttps://github.com/mafintosh/tar-fs/commit/85e0ebb886219d7c38a5eca7bf33d21d8e3189d2](https://github.com/mafintosh/tar-fs/commit/85e0ebb886219d7c38a5eca7bf33d21d8e3189d2)

- [Referencehttps://github.com/mafintosh/tar-fs/compare/v3.1.3...v3.1.4](https://github.com/mafintosh/tar-fs/compare/v3.1.3...v3.1.4)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-145489](https://www.cve.org/CVERecord?id=CVE-2026-145489)

**Severity:** Medium 6.5 CVSS 3.1, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-145489)

**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
