CVE-2025-54387 Details
Description
IPX is an image optimizer powered by sharp and svgo. In versions 1.3.1 and below, 2.0.0-0 through 2.1.0, and 3.0.0 through 3.1.0, 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. This is fixed in versions 1.3.2, 2.1.1 and 3.1.1.
A path traversal vulnerability has been identified in IPX, an image optimization tool that utilizes sharp and svgo. This issue is present in versions 1.3.1 and earlier, as well as 2.0.0-0 through 2.1.0, and 3.0.0 through 3.1.0. The vulnerability arises from the method used to verify whether a path resides within permitted directories. When these directories do not end with a path separator, the check can be bypassed, allowing access to files outside the intended directory. This occurs because the validation relies on a straightforward string prefix comparison.
Users can update to IPX versions 1.3.2, 2.1.1, or 3.1.1, all of which include the necessary fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 5, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/unjs/ipx/security/advisories/GHSA-mm3p-j368-7jcr | CISA-ADP | ExploitVendor Advisory |
| https://github.com/unjs/ipx/commit/81693ddbfc062cc922e4e2406e8427ab4e3ad214 | [email protected] | Patch |
| https://github.com/unjs/ipx/releases/tag/v1.3.2 | [email protected] | Release Notes |
| https://github.com/unjs/ipx/releases/tag/v2.1.1 | [email protected] | Release Notes |
| https://github.com/unjs/ipx/releases/tag/v3.1.1 | [email protected] | Release Notes |
| https://github.com/unjs/ipx/security/advisories/GHSA-mm3p-j368-7jcr | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| unjs ipx | < 1.3.2 >= 2.0.0, < 2.1.1 >= 3.0.0, < 3.1.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 9, 2025 | Initial Analysis | [email protected] |
| Aug 5, 2025 | CVE Modified | CISA-ADP |
| Aug 5, 2025 | New CVE Received | [email protected] |