patchminder
Proof of concept · Exploit-DB CVE-2018-25031

Server-side request forgeryin SMARTBEAR swagger_ui.

Published 11 Mar 2022 · Updated 5 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (Exploit-DB).

Attack code is public
Severity
Medium 4.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 65.6% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 4.1.3 or later
In plain words

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.

What to do now
  • Upgrade swagger-ui (npm) to 4.1.3 or later.
  • Upgrade org.webjars:swagger-ui (Maven) to 4.1.3 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record
swagger_ui
4.1.2 and earlier
Not confirmed
CISA
swagger-ui (npm)
before 4.1.3
4.1.3
GitHub advisory
org.webjars:swagger-ui (Maven)
before 4.1.3
4.1.3
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 11 Mar 2022
    CVE ID reserved by mitre.
  2. 11 Mar 2022
    Published in the CVE List.
  3. 26 May 2022
    First public proof of concept on GitHub.
  4. 5 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (Exploit-DB). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
1 entry
GitHub proof of concepts
15 repositories
Exploit-DBEDB-ID 51379web application exploit for json, published 20 Apr 2023
GitHubno warning signs foundmathis2001/CVE-2018-250313 stars · created 28 Jun 2023CVE-2018-25031 tests
GitHubno warning signs foundafine-com/CVE-2018-250312 stars · created 26 May 2022.json and .yaml files used to exploit CVE-2018-25031
GitHubno warning signs foundrafaelcintralopes/SwaggerUI-CVE-2018-250312 stars · created 14 Apr 2023Exploit Swagger UI · User Interface (UI) Misrepresentation of Critical Information (CVE-2018-25031)
GitHubno warning signs foundLUCASRENAA/CVE-2018-250310 stars · created 16 Nov 2023
GitHubno warning signs foundhev0x/CVE-2018-25031-PoC0 stars · created 13 Dec 2023PoC of CVE-2018-25031
GitHubno warning signs foundjohnlaurance/CVE-2018-25031-test20 stars · created 22 Feb 2024
GitHubno warning signs foundgeozin/POC-CVE-2018-250310 stars · created 15 May 2024A simple POC (CVE-2018-25031
GitHubno warning signs foundh2oa/CVE-2018-250310 stars · created 21 May 2024
GitHubno warning signs foundnatpakun/SSRF-CVE-2018-25031-0 stars · created 24 Jul 2024
GitHubno warning signs foundKonEch0/CVE-2018-25031-SG0 stars · created 15 Nov 2024CVE-2018-25031-SG

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.

Related

Same weakness: Insecure storage of sensitive information

All CWE-922 vulnerabilities

References
Cite this page

Patchminder. CVE-2018-25031: Server-side request forgery in SMARTBEAR swagger_ui. https://patchminder.com/cve/cve-2018-25031/ (accessed 5 December 2026).