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


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.13% (35th 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 Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN13-NODETARFS-10297365
  • published4 Jun 2025
  • disclosed2 Jun 2025

Introduced: 2 Jun 2025

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

How to fix?

Upgrade Debian:13 node-tar-fs to version 3.0.9+~cs2.0.4-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 Debian. See How to fix? for Debian:13 relevant fixed versions and status.

tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.0.9, 2.1.3, and 1.16.5 have an issue where an extract can write outside the specified dir with a specific tarball. This has been patched in versions 3.0.9, 2.1.3, and 1.16.5. As a workaround, use the ignore option to ignore non files/directories.