# CVE-2018-25031

- Priority: **Routine**
- Reason: Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-03-11 · Modified: 2024-08-05
- Aliases: GHSA-cr3q-pqgq-m8c2
- Record: https://cvemate.com/vulnerability/CVE-2018-25031 · JSON: https://cvemate.com/vulnerability/CVE-2018-25031/json

## Description

```text
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.
```

## Signals

- CVSS: 4.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- EPSS: 65.579%, percentile 99.28%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (exploit-database)

## Affected

- org.webjars swagger-ui (Maven): \< 4.1.3
- Npm swagger-ui (Npm): \< 4.1.3
- smartbear swagger\_ui: \< 4.1.3

## References

- <https://security.snyk.io/vuln/SNYK-JS-SWAGGERUI-2314885>
- <https://github.com/swagger-api/swagger-ui/issues/4872>
- <https://github.com/swagger-api/swagger-ui/releases/tag/v4.1.3>
- <https://security.netapp.com/advisory/ntap-20220407-0004/>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-25031>
- <https://github.com/swagger-api/swagger-ui/pull/7697>
- <https://github.com/swagger-api/swagger-ui>
- <https://security.netapp.com/advisory/ntap-20220407-0004>

---

Data as of 2026-12-05T08:28:20.942Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
