CVE-2025-54387 json
IPX is Vulnerable to Path Traversal via Prefix Matching Bypass
published 2025-08-04 15 mo ago modified 2026-09-10 1 mo ago also GHSA-mm3p-j368-7jcr , EUVD-2025-23570
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm ipx 1.3.2, 2.1.1, 3.1.1
- unjs ipx 1.3.2, 2.1.1, 3.1.1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 15 mo ago
Exploit prediction
0.79% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/unjs/ipx/security/advisories/GHSA-mm3p-j368-7jcr referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.9 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:L/SA:N |
| CNA | 4.0 | 6.9 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | ipx | <1.3.2 >=2.0.0-0, <2.1.1 >=3.0.0, <3.1.1 |
1.3.2 2.1.1 3.1.1 |
Affected products
- unjs ipx
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/unjs/ipx/commit/81693ddbfc062cc922e4e2406e8427ab4e3ad214
web, patch
-
github.com
/unjs/ipx/security/advisories/GHSA-mm3p-j368-7jcr
exploit, web, vendor-advisory
-
github.com
/unjs/ipx/releases/tag/v1.3.2
web, release-notes
-
github.com
/unjs/ipx/releases/tag/v2.1.1
web, release-notes
-
github.com
/unjs/ipx/releases/tag/v3.1.1
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2025-54387
advisory
-
github.com
/unjs/ipx
package
Sources
- CVE List CVE-2025-54387
- GitHub Advisory GHSA-mm3p-j368-7jcr
- NVD CVE-2025-54387
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.