CVE-2025-54387
Published: 05 August 2025
Summary
CVE-2025-54387 is a critical-severity Path Traversal (CWE-22) vulnerability in Unjs Ipx. Its CVSS base score is 9.8 (Critical).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 45.1% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified are NIST 800-53 AC-6 (Least Privilege) and SI-2 (Flaw Remediation).
Threat & Defense at a Glance
Threat & Defense Details
Mitigating Controls (NIST 800-53 r5)AI
SI-2 mandates identification, reporting, and correction of system flaws like this path traversal vulnerability, directly requiring updates to fixed IPX versions 1.3.2, 2.1.1, or 3.1.1.
AC-6 enforces least privilege for processes, confining the IPX image optimizer to only authorized directories and preventing unauthorized access to files outside allowed paths even if traversal occurs.
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Path traversal flaw in public-facing IPX service enables remote unauthenticated exploitation (T1190) resulting in arbitrary local file reads (T1005).
NVD 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…
more
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.
Deeper analysisAI
CVE-2025-54387 affects IPX, 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 vulnerability stems from a flawed path validation mechanism that checks whether a path is within allowed directories using a raw string prefix comparison. This allows path prefix bypass when allowed directories do not end with a path separator, enabling path traversal as classified under CWE-22. The issue has a CVSS v3.1 base score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), indicating critical severity.
Remote unauthenticated attackers can exploit this vulnerability over the network with low complexity and no user interaction. By crafting malicious paths that bypass the prefix check, attackers can access and process files outside the intended directories. This leads to high-impact confidentiality violations through arbitrary file reads, integrity compromises potentially via image processing manipulations, and availability disruptions.
The vulnerability is fixed in IPX versions 1.3.2, 2.1.1, and 3.1.1, as detailed in the project releases and a specific commit resolving the path check logic. Security practitioners should upgrade affected installations immediately, per the GitHub security advisory GHSA-mm3p-j368-7jcr.
Details
- CWE(s)