Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. ipx
  4. ›
  5. CVE-2025-54387

CVE-2025-54387: IPX Allows Path Traversal via Prefix Matching Bypass

August 4, 2025 (updated November 10, 2025)

The approach used to check whether a path is within allowed directories is vulnerable to path prefix bypass when the allowed directories do not end with a path separator. This occurs because the check relies on a raw string prefix comparison.

References

  • github.com/advisories/GHSA-mm3p-j368-7jcr
  • github.com/unjs/ipx
  • github.com/unjs/ipx/commit/81693ddbfc062cc922e4e2406e8427ab4e3ad214
  • github.com/unjs/ipx/releases/tag/v1.3.2
  • github.com/unjs/ipx/releases/tag/v2.1.1
  • github.com/unjs/ipx/releases/tag/v3.1.1
  • github.com/unjs/ipx/security/advisories/GHSA-mm3p-j368-7jcr
  • nvd.nist.gov/vuln/detail/CVE-2025-54387

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.3.2, all versions starting from 2.0.0-0 before 2.1.1, all versions starting from 3.0.0 before 3.1.1

Fixed versions

  • 1.3.2
  • 2.1.1
  • 3.1.1

Solution

Upgrade to versions 1.3.2, 2.1.1, 3.1.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

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

Source file

npm/ipx/CVE-2025-54387.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:32 +0000.