Path Prefix Bypass Vulnerability in IPX Image Optimizer by unjs
CVE-2025-54387
6.9MEDIUM
What is CVE-2025-54387?
The IPX image optimizer, a tool utilizing sharp and svgo libraries, is susceptible to a path prefix bypass vulnerability in specific versions. This flaw occurs due to insufficient validation of paths against permitted directories, particularly when the allowed directories lack a trailing path separator. Such a design oversight allows attackers to manipulate input paths, potentially leading to unauthorized access to sensitive data. It is recommended to update to the patched versions of IPX to mitigate this risk.
Affected Version(s)
ipx < 1.3.2 < 1.3.2
ipx >= 2.0.0-0, < 2.1.1 < 2.0.0-0, 2.1.1
ipx >= 3.0.0, < 3.1.1 < 3.0.0, 3.1.1
