CVE-2018-25031
MEDIUM 4.3CVSS 3.1Spoofing attack in swagger-ui
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.
- Published
- 11 Mar 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20CWE-918CWE-922
- Also known as
- GHSA-cr3q-pqgq-m8c2
- Sources
- NVDJSONOSV GHSA-cr3q-pqgq-m8c2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | smartbear | swagger_uicpe:2.3:a:smartbear:swagger_ui:*:*:*:*:*:*:*:* |
< 4.1.3 | 4.1.3 |
| OSV | npm | swagger-ui | < 4.1.3 | 4.1.3 |
| OSV | Maven | org.webjars:swagger-ui | < 4.1.3 | 4.1.3 |
References
- https://github.com/swagger-api/swagger-ui/issues/4872 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/swagger-api/swagger-ui/releases/tag/v4.1.3 · Release Notes, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20220407-0004/ · Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-SWAGGERUI-2314885 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-25031 · ADVISORY
- https://github.com/swagger-api/swagger-ui/pull/7697 · WEB
- https://github.com/swagger-api/swagger-ui · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 11 Mar 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 Mar 2022)