Directory Traversal Affecting node-tar-fs package, versions <2.1.1-6ubuntu0.22.04.1~esm1


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-UBUNTU2204-NODETARFS-10292723
  • published2 Jun 2026
  • 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 Ubuntu:22.04 node-tar-fs to version 2.1.1-6ubuntu0.22.04.1~esm1 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:22.04 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.