Skip to main content
Menu
CVEs

tar-fs remote code execution in archive extraction

CVE-2026-145489EUVD-2026-145101Published December 5, 2026, updated

7.1HighCNA
Exploited
No known exploitation
Fix
Fixed in 2.1.6, 3.1.4
Who is exposed
Specific setups only

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

Original 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.

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.

“tar-fs before 2.1.6 and 3.x before 3.1.4”

vulncheck.com

What to do

  1. Check whether your setup matches what the bug needs.

    tar-fs versions before 2.1.6, or 3.0.0 up to before 3.1.4
  2. Upgrade to a fixed version: 2.1.6, 3.1.4.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

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"}.

Affected versions

cve.now Index

29Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure12/25Specific setups only, reachable over the network without a login
  • Reach10/20Affects npm packages
  • Severity7.1/10CVSS 7.1
  • No patch0/5No signal

What would change the score

  • Would score about 79 if added to CISA KEV
  • Would score about 74 if CISA's SSVC rates exploitation active

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 6

Questions about CVE-2026-145489

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: cve.now feed data

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: vulncheck.com

Which versions are affected by CVE-2026-145489?

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

Source: cve.now feed data

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: vulncheck.com

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: vulncheck.com

No corrections so far. Something wrong on this page? Report an error.