Description
tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.0.9, 2.1.3, and 1.16.5 have an issue where an extract can write outside the specified dir with a specific tarball. This has been patched in versions 3.0.9, 2.1.3, and 1.16.5. As a workaround, use the ignore option to ignore non files/directories.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mafintosh | tar-fs | < 1.16.5, >= 2.0.0, < 2.1.3, >= 3.0.0, < 3.0.9 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-tar-fs | 3.0.9+~cs2.0.4-1 | — |
| Debian 13 | node-tar-fs | 3.0.9+~cs2.0.4-1 | — |
| Debian 12 | node-tar-fs | 2.1.3-0+deb12u1 | — |
| Debian 11 | node-tar-fs | 2.1.3-0+deb11u1 | DLA-4214-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | node-tar-fs | 3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1 | USN-8367-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | node-tar-fs | 2.1.1-6ubuntu0.24.04.1~esm1 | USN-8367-1 |
| Ubuntu Pro 22.04 LTS | node-tar-fs | 2.1.1-6ubuntu0.22.04.1~esm1 | USN-8367-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | reaper | 3.1.1-19 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | code-server | 4.105.1-r1 | — |
| Wolfi rolling | jitsucom-jitsu +2 | 2.10.0-r0 | — |
| Wolfi rolling | sqlpad +1 | 7.5.3-r2 | — |
| Wolfi rolling | tileserver-gl +1 | 5.3.1-r3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | tar-fs | < 1.16.5 | 1.16.5 | GHSA-8cj5-5rvv-wf4v |
| npm | tar-fs | >= 2.0.0, < 2.1.3 | 2.1.3 | GHSA-8cj5-5rvv-wf4v |
| npm | tar-fs | >= 3.0.0, < 3.0.9 | 3.0.9 | GHSA-8cj5-5rvv-wf4v |
Advisories 3
- USN-8367-1 node-tar-fs vulnerabilities Ubuntu Security Notices (USN) · Jun 2, 2026
- DLA-4214-1 node-tar-fs - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2025-1420 IBM App Connect Enterprise: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025