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

Published Sep 24, 2025
·
Updated

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.

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

Credit Reported by: Mapta / BugBunnyai

Other sources

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.

MITRE

Affected Software

7 affected componentsFixes available
tar-fs tar-fs<3.1.1
tar-fs tar-fs<2.1.3
tar-fs tar-fs<1.16.5
npm/tar-fs<1.16.6
1.16.6
npm/tar-fs>=2.0.0<2.1.4
2.1.4
npm/tar-fs>=3.0.0<3.1.1
3.1.1
IBM Concert Software<=1.0.0-2.1.0

Event History

Sep 24, 2025
CVE Published
via MITRE·05:43 PM
Data Sourced
via MITRE·05:43 PM
DescriptionWeakness
Data Sourced
via Red Hat·06:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:57 PM
Data Sourced
via GitHub·06:57 PM
DescriptionWeaknessAffected Software
Feb 10, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-59343?

CVE-2025-59343 has a medium severity rating due to potential symlink validation bypass exploits.

2

How do I fix CVE-2025-59343?

To fix CVE-2025-59343, upgrade to version 3.1.1, 2.1.4, or 1.16.6 of the tar-fs package.

3

What versions of tar-fs are affected by CVE-2025-59343?

Versions prior to 3.1.1, 2.1.3, and 1.16.5 of tar-fs are affected by CVE-2025-59343.

4

Is there a workaround for CVE-2025-59343?

While a specific workaround is not detailed, the best approach is to update to a patched version of tar-fs.

5

What type of vulnerability is CVE-2025-59343?

CVE-2025-59343 is a symlink validation bypass vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203