CVEs / CVE-2018-25031
CVE-2018-25031: n/a n/a vulnerability
- medium 4.3 CVSS 3.1 (NVD)
- EPSS 65.5% chance of exploitation in the next 30 days, higher than 99% of CVEs (26 Nov 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2018-25031
Description
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| n/a n/a | n/a | — |
| smartbear swagger_ui | up to and including 4.1.2 | — |
| Product | Affected | Fixed in |
|---|---|---|
| swagger-ui (npm) | before 4.1.3 | 4.1.3 |
| org.webjars:swagger-ui (Maven) | before 4.1.3 | 4.1.3 |
Package versions from GHSA-cr3q-pqgq-m8c2.
Exploitation
Not in the CISA Known Exploited Vulnerabilities catalog as of 25 Nov 2026.
Severity
| CVSS 3.1 | 4.3 mediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:NScored by NVD |
|---|---|
| Weakness | CWE-20, CWE-918, CWE-922 |
References
- CVE-2018-25031 on NVD
- CVE-2018-25031 on OSV
- https://github.com/swagger-api/swagger-ui/issues/4872 Issue Tracking, Patch, Third Party Advisory
- https://github.com/swagger-api/swagger-ui/releases/tag/v4.1.3 Release Notes, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220407-0004/ Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SWAGGERUI-2314885 Patch, Third Party Advisory
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.