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

CVE-2025-59343: tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball

September 24, 2025 (updated September 26, 2025)

v3.1.0, v2.1.3, v1.16.5 and below

References

  • github.com/advisories/GHSA-vj76-c3g6-qr5v
  • github.com/mafintosh/tar-fs
  • github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09
  • github.com/mafintosh/tar-fs/security/advisories/GHSA-vj76-c3g6-qr5v
  • nvd.nist.gov/vuln/detail/CVE-2025-59343

Code Behaviors & Features

Detect and mitigate CVE-2025-59343 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.6, all versions starting from 2.0.0 before 2.1.4, all versions starting from 3.0.0 before 3.1.1

Fixed versions

  • 3.1.1
  • 2.1.4
  • 1.16.6

Solution

Upgrade to versions 1.16.6, 2.1.4, 3.1.1 or above.

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-61: UNIX Symbolic Link (Symlink) Following

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Mon, 06 Oct 2025 00:20:01 +0000.