CVE-2025-54387
published medium CVSS 4.0 · 6.9IPX is Vulnerable to Path Traversal via Prefix Matching Bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| unjs | — | ipx< 1.3.2 · >= 2.0.0-0, < 2.1.1 · >= 3.0.0, < 3.1.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| unjs | ipx | < 1.3.2 (affected)>= 2.0.0-0, < 2.1.1 (affected)>= 3.0.0, < 3.1.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
5Provider assertions
2GitHub_M · cna
IPX is Vulnerable to Path Traversal via Prefix Matching Bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 37324c6d10a2222b7f5283da5a1253bf9e495c8e0b1f69a36490d990aa51df48
- Ingested
- 23 Sep 2026, 08:53:04 UTC
- Source record
- Official CVE record