CVE-2025-54387: IPX Allows Path Traversal via Prefix Matching Bypass
(updated )
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. Learn more about Dependency Scanning →