Server-side request forgeryin SMARTBEAR swagger_ui.
Proof of concept public (Exploit-DB).
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.
- Upgrade swagger-ui (npm) to 4.1.3 or later.
- Upgrade org.webjars:swagger-ui (Maven) to 4.1.3 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 11 Mar 2022CVE ID reserved by mitre.
- 11 Mar 2022Published in the CVE List.
- 26 May 2022First public proof of concept on GitHub.
- 5 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (Exploit-DB). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Same weakness: Insecure storage of sensitive information
Patchminder. CVE-2018-25031: Server-side request forgery in SMARTBEAR swagger_ui. https://patchminder.com/cve/cve-2018-25031/ (accessed 5 December 2026).