CVE-2025-59343: tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball
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
Event History
Frequently Asked Questions
What is the severity of CVE-2025-59343?
CVE-2025-59343 has a medium severity rating due to potential symlink validation bypass exploits.
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.
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.
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.
What type of vulnerability is CVE-2025-59343?
CVE-2025-59343 is a symlink validation bypass vulnerability.