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.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.6%top 52.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12node-tar-fs2.1.3-0+deb12u2DSA-6013-1
Debian:12node-tar-fs2.1.3-0+deb12u2DEBIAN-CVE-2025-59343
Debian:13node-tar-fs3.0.9+~cs2.0.4-1+deb13u1DEBIAN-CVE-2025-59343
Debian:13node-tar-fs3.0.9+~cs2.0.4-1+deb13u1DSA-6013-1
Debian:14node-tar-fs3.0.9+~cs2.0.4-2DEBIAN-CVE-2025-59343
Ubuntu:25.10node-tar-fs3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1UBUNTU-CVE-2025-59343
Ubuntu:25.10node-tar-fs3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1USN-8367-1
npmtar-fs2.1.4GHSA-vj76-c3g6-qr5v
npmtar-fs3.1.1GHSA-vj76-c3g6-qr5v
npmtar-fs1.16.6GHSA-vj76-c3g6-qr5v

Affected products (as reported)

VendorProductVersions
mafintosh tar-fs >= 3.0.0, < 3.1.1>= 2.0.0, < 2.1.3< 1.16.5

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

References