CVE-2018-25031Smartbear Swagger Ui
Medium 4.3 No auth neededHigh EPSS
Follow: this CVE · Smartbear · Smartbear Swagger Ui We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 4.3
- EPSS
- 65.6% probability of exploitation in 30 days · percentile 99
- Auth required
- No
- Published
- Mar 11, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
What happens
Swagger UI 4.1.2 and earlier could allow a remote attacker to conduct spoofing attacks. By persuading a victim to open a crafted URL, an attacker could exploit this vulnerability to display remote OpenAPI definitions. Note: This was originally claimed to be resolved in 4.1.3. However, third parties have indicated this is not resolved in 4.1.3 and even occurs in that version and possibly others.
What to do
- Apply the vendor's security update for Swagger Ui.
- 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 |
|---|---|---|---|---|
| Maven | org.webjars:swagger-ui |
< 4.1.3 |
4.1.3 |
— |
| npm | swagger-ui |
< 4.1.3 |
4.1.3 |
npm install swagger-ui@4.1.3 |
Per OSV / GitHub Advisories (GHSA-cr3q-pqgq-m8c2). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| smartbear | swagger_ui | < 4.1.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- security.netapp.com Third Party Advisory
- security.snyk.io Patch Third Party Advisory