{"cve":"CVE-2018-25031","nvd":{"published":"2022-03-11T07:15:07.190","modified":"2026-06-17T01:54:33.510","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","score":4.3},"cwes":["CWE-20","CWE-918","CWE-922"],"references":["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://security.snyk.io/vuln/SNYK-JS-SWAGGERUI-2314885","https://github.com/swagger-api/swagger-ui/issues/4872"],"products":["smartbear:swagger_ui"],"source":"nvd","synced_at":"2026-10-19T21:29:06.454770966+00:00"},"epss":{"cve":"CVE-2018-25031","score":0.42326,"percentile":0.98702,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-cr3q-pqgq-m8c2","url":"https://osv.dev/vulnerability/GHSA-cr3q-pqgq-m8c2","summary":"Spoofing attack in swagger-ui","modified":"2025-09-02T22:38:08.350811Z","packages":[{"ecosystem":"npm","name":"swagger-ui","purl":"pkg:npm/swagger-ui","ranges":["<4.1.3"],"fixed":["4.1.3"]},{"ecosystem":"Maven","name":"org.webjars:swagger-ui","purl":"pkg:maven/org.webjars/swagger-ui","ranges":["<4.1.3"],"fixed":["4.1.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}