Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. tar-fs
  4. ›
  5. CVE-2025-48387

CVE-2025-48387: tar-fs can extract outside the specified dir with a specific tarball

June 3, 2025 (updated August 14, 2025)

v3.0.8, v2.1.2, v1.16.4 and below

References

  • github.com/advisories/GHSA-8cj5-5rvv-wf4v
  • github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w
  • github.com/mafintosh/tar-fs
  • github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f
  • github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v
  • nvd.nist.gov/vuln/detail/CVE-2025-48387

Code Behaviors & Features

Detect and mitigate CVE-2025-48387 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.16.5, all versions starting from 2.0.0 before 2.1.3, all versions starting from 3.0.0 before 3.0.9

Fixed versions

  • 1.16.5
  • 2.1.3
  • 3.0.9

Solution

Upgrade to versions 1.16.5, 2.1.3, 3.0.9 or above.

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/tar-fs/CVE-2025-48387.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:40 +0000.