CVE-2018-25031
mediumpriority · track · 42EPSS 0.423 · 99 %ileexploit · PoCDEEUUSEPSS · scored 2026-10-22
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (15)
Public proof-of-concept and weaponised exploit code.
- KonEch0/CVE-2018-25031-SGCVE-2018-25031-SGPoC · poc_in_github
- LUCASRENAA/CVE-2018-25031LUCASRENAA/CVE-2018-25031PoC · poc_in_github
- RelicHunt3r/swagger-uiSwagger UI (CVE-2018-25031) POC, [HTMLi, XSS].PoC · poc_in_github
- afine-com/CVE-2018-25031.json and .yaml files used to exploit CVE-2018-25031PoC · poc_in_github
- geozin/POC-CVE-2018-25031A simple POC (CVE-2018-25031PoC · poc_in_github
- h2oa/CVE-2018-25031h2oa/CVE-2018-25031PoC · poc_in_github
affected products (6)
Products and version ranges known to be affected.
advisories (4)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-1036IBM WebSphere Application Server: Mehrere SchwachstellenDeutsch2022-04-05csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in IBM WebSphere Application Server ausnutzen, um falsche Informationen darzustellen und Sicherheitsmaßnahmen zu umgehen.
- WID-SEC-W-2023-2528IBM Rational ClearQuest: Mehrere SchwachstellenDeutsch2023-10-01csaf · cert_bundDE
Ein entfernter, anonymer oder authentisierter Angreifer kann mehrere Schwachstellen in IBM Rational ClearQuest ausnutzen, um Informationen offenzulegen und Sicherheitsmaßnahmen zu umgehen.
- WID-SEC-W-2026-0559IBM Rational Build Forge: Mehrere SchwachstellenDeutsch2026-03-01csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in IBM Rational Build Forge ausnutzen, um Sicherheitsvorkehrungen zu umgehen, um beliebigen Programmcode auszuführen, um einen Denial of Service Angriff durchzuführen, um Informationen offenzulegen, und um Dateien zu manipulieren.
- GHSA-cr3q-pqgq-m8c2Spoofing attack in swagger-ui2022-03-12ghsa · osvUS
Swagger UI before 4.1.3 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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (19)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2018-25031/cnnvd
- https://cxsecurity.com/issue/WLB-2023040068cnnvd
- https://github.com/swagger-api/swagger-ui/issues/4872cnnvd
- https://github.com/swagger-api/swagger-ui/releases/tag/v4.1.3cnnvd
- https://security.netapp.com/advisory/ntap-20220407-0004/cnnvd
- https://security.snyk.io/vuln/SNYK-JS-SWAGGERUI-2314885cnnvd
- https://vigilance.fr/vulnerability/Swagger-UI-spoofing-via-Remote-OpenAPI-Definitions-37975cnnvd
- https://www.auscert.org.au/bulletins/ESB-2022.5150cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan