Vulnerability · Published Sep 24, 2025 · Assigned by GitHub_M
CVE-2025-59343tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball
High 8.7
In plain English
A high-severity path traversal in tar-fs from mafintosh. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-tar-fs | 2.1.3-0+deb12u2 | DSA-6013-1 |
| Debian:12 | node-tar-fs | 2.1.3-0+deb12u2 | DEBIAN-CVE-2025-59343 |
| Debian:13 | node-tar-fs | 3.0.9+~cs2.0.4-1+deb13u1 | DEBIAN-CVE-2025-59343 |
| Debian:13 | node-tar-fs | 3.0.9+~cs2.0.4-1+deb13u1 | DSA-6013-1 |
| Debian:14 | node-tar-fs | 3.0.9+~cs2.0.4-2 | DEBIAN-CVE-2025-59343 |
| Ubuntu:25.10 | node-tar-fs | 3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1 | UBUNTU-CVE-2025-59343 |
| Ubuntu:25.10 | node-tar-fs | 3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1 | USN-8367-1 |
| npm | tar-fs | 2.1.4 | GHSA-vj76-c3g6-qr5v |
| npm | tar-fs | 3.1.1 | GHSA-vj76-c3g6-qr5v |
| npm | tar-fs | 1.16.6 | GHSA-vj76-c3g6-qr5v |
Affected products (as reported)
Weakness: CWE-22, CWE-61 · 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