CVE-2025-54387Unjs Ipx
Medium 6.9 No auth needed
Follow: this CVE · Unjs · Unjs Ipx We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 4.0
- 6.9
- EPSS
- —
- Auth required
- No
- Published
- Aug 5, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
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
What happens
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.
What to do
- Apply the vendor's security update for Ipx.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | ipx |
< 1.3.2 |
1.3.2 |
npm install ipx@1.3.2 |
| npm | ipx |
≥ 2.0.0-0 < 2.1.1 |
2.1.1 |
npm install ipx@2.1.1 |
| npm | ipx |
≥ 3.0.0 < 3.1.1 |
3.1.1 |
npm install ipx@3.1.1 |
Per OSV / GitHub Advisories (GHSA-mm3p-j368-7jcr). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| unjs | ipx | < 1.3.2 |
| unjs | ipx | ≥ 2.0.0 < 2.1.1 |
| unjs | ipx | ≥ 3.0.0 < 3.1.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Release Notes
- github.com Release Notes
- github.com Exploit Vendor Advisory