Directory Traversal Affecting node-tar-fs package, versions <3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.58% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2510-NODETARFS-15019602
  • published2 Jun 2026
  • disclosed24 Sept 2025

Introduced: 24 Sep 2025

CVE-2025-59343  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-61  (opens in a new tab)

How to fix?

Upgrade Ubuntu:25.10 node-tar-fs to version 3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-tar-fs package and not the node-tar-fs package as distributed by Ubuntu. See How to fix? for Ubuntu:25.10 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1