{"id":"CVE-2018-25031","published":"2022-03-11T06:47:46Z","modified":"2024-08-05T12:26:39Z","title":"Swagger UI 4.1.2 and earlier could allow a remote attacker to conduct spoofing attacks","vendor":null,"product":null,"tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.42326,"percentile":0.98732,"provenance":"source"},"cwes":[{"id":"CWE-922","name":"Insecure Storage of Sensitive Information"},{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SWAGGERUI-2314885","tags":[]},{"url":"https://github.com/swagger-api/swagger-ui/issues/4872","tags":[]},{"url":"https://github.com/swagger-api/swagger-ui/releases/tag/v4.1.3","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20220407-0004/","tags":[]}],"priority":{"score":27.8,"factors":[{"name":"EPSS percentile","points":19.75},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.01}]},"exploitSources":{"pocGithub":{"count":8,"skipped":7,"earliest":"2022-05-26","earliestUrl":"https://github.com/afine-com/CVE-2018-25031","repos":[{"name":"mathis2001/CVE-2018-25031","url":"https://github.com/mathis2001/CVE-2018-25031","stars":3,"created":"2023-06-28"},{"name":"afine-com/CVE-2018-25031","url":"https://github.com/afine-com/CVE-2018-25031","stars":2,"created":"2022-05-26"},{"name":"rafaelcintralopes/SwaggerUI-CVE-2018-25031","url":"https://github.com/rafaelcintralopes/SwaggerUI-CVE-2018-25031","stars":2,"created":"2023-04-14"},{"name":"hev0x/CVE-2018-25031-PoC","url":"https://github.com/hev0x/CVE-2018-25031-PoC","stars":0,"created":"2023-12-13"},{"name":"geozin/POC-CVE-2018-25031","url":"https://github.com/geozin/POC-CVE-2018-25031","stars":0,"created":"2024-05-15"}]},"first":{"date":"2022-05-26","source":"PoC-in-GitHub","url":"https://github.com/afine-com/CVE-2018-25031"},"provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-18T13:12:25.157134Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"swagger-ui","vulnerableRanges":["<4.1.3"],"patched":["4.1.3"],"from":["GHSA-cr3q-pqgq-m8c2"],"provenance":"source"},{"ecosystem":"Maven","package":"org.webjars:swagger-ui","vulnerableRanges":["<4.1.3"],"patched":["4.1.3"],"from":["GHSA-cr3q-pqgq-m8c2"],"provenance":"source"}],"summary":{"text":"Swagger UI versions 4.1.2 and earlier contain a flaw that lets a remote attacker display remote OpenAPI definitions through a crafted URL, and third parties report that it also persists in 4.1.3. An attacker needs only to persuade a victim to open the crafted URL, with no authentication required, and the result is a spoofing attack that can present attacker-chosen API definitions to the victim.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:19:32Z"},"euvd":{"id":"EUVD-2022-1408","exploited":false,"provenance":"source"}}