---
title: "GHSA-vj76-c3g6-qr5v: tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball"
description: "High severity. tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball. Affects tar-fs; fixed in 3.1.1."
url: https://inlinr.com/advisories/GHSA-vj76-c3g6-qr5v
lang: en
---

[Packages](https://inlinr.com/packages) / [tar-fs](https://inlinr.com/packages/tar-fs) / [Security](https://inlinr.com/packages/tar-fs/security)

High Vulnerability GHSA-vj76-c3g6-qr5v CVE-2025-59343 Published 24 Sep 2025

# tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball

Your version 

Affected releases · [tar-fs](https://inlinr.com/packages/tar-fs)

- 3.x 3.0.0 – 3.1.0 Fixed in 3.1.1
- 2.x 2.0.0 – 2.1.3 Fixed in 2.1.4
- 1.x 1.0.0 – 1.16.5 Fixed in 1.16.6
- 0.5.x and older 0.1.0 – 0.5.2 No fix, no longer updated

On 3.x, the newest line:

```
npm install tar-fs@3.1.1
```

Every release on a timeline

3.x 

1. Affected

3.0.0 – 3.1.0  
12 releases
2. Fixed

3.1.1 – 3.1.3  
3 releases, latest

2.x 

1. Affected

2.0.0 – 2.1.3  
6 releases
2. Fixed

2.1.4 – 2.1.5  
2 releases

1.x 

1. Affected

1.0.0 – 1.16.5  
32 releases
2. Fixed

1.16.6  
1 release

0.x 

1. Affected

0.1.0 – 0.5.2  
21 releases

77 stable releases of tar-fs, oldest to newest, one row per major.

## What happens

Impact

 v3.1.0, v2.1.3, v1.16.5 and below

Patches

Has been patched in 3.1.1, 2.1.4, and 1.16.6

Workarounds

You can use the ignore option to ignore non files/directories.

```
  ignore (_, header) {
    // pass files & directories, ignore e.g. symlinks
    return header.type !== 'file' && header.type !== 'directory'
  }
```

Credit

Reported by: Mapta / BugBunny\_ai

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: high
- **Availability**: none

CVSS:4.0/​AV:N/​AC:L/​AT:N/​PR:N/​UI:N/​VC:N/​VI:H/​VA:N/​SC:N/​SI:N/​SA:N

## References

- [Reference](https://github.com/mafintosh/tar-fs/security/advisories/GHSA-vj76-c3g6-qr5v "https://github.com/mafintosh/tar-fs/security/advisories/GHSA-vj76-c3g6-qr5v")  
github.com/mafintosh/tar-fs/security/advisories…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-59343 "https://nvd.nist.gov/vuln/detail/CVE-2025-59343")  
nvd.nist.gov/vuln/detail/CVE-2025-59343
- [Fix commit](https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09 "https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09")  
0bd54cd
- [Package](https://github.com/mafintosh/tar-fs "https://github.com/mafintosh/tar-fs")  
github.com/mafintosh/tar-fs
- [Reference](https://lists.debian.org/debian-lts-announce/2025/09/msg00028.html "https://lists.debian.org/debian-lts-announce/2025/09/msg00028.html")  
lists.debian.org/debian-lts-announce/2025/09/ms…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
