Vulnerability record · CVE-2018-25031 · published 11 March 2022
CVE-2018-25031: Smartbear swagger ui improper input validation vulnerability
Smartbear · 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.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/swagger-api/swagger-ui/issues/4872 | Issue TrackingPatchThird Party Advisory |
| https://github.com/swagger-api/swagger-ui/releases/tag/v4.1.3 | Release NotesThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20220407-0004/ | Third Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-SWAGGERUI-2314885 | PatchThird Party Advisory |
| https://github.com/swagger-api/swagger-ui/issues/4872 | Issue TrackingPatchThird Party Advisory |
| https://github.com/swagger-api/swagger-ui/releases/tag/v4.1.3 | Release NotesThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20220407-0004/ | Third Party Advisory |
| https://security.snyk.io/vuln/SNYK-JS-SWAGGERUI-2314885 | PatchThird Party Advisory |
Track CVE-2018-25031 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2018-25031), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.