CVE-2018-25031Swagger Ui SSRF
Spoofing attack in swagger-ui
Published Mar 12, 2022 · Updated Oct 24, 2026 · Also known as CGA-6mq7-6mqm-g23x, CGA-jhg6-h7cm-7m82, CLSA-2026-1785468079, GHSA-cr3q-pqgq-m8c2, GHSA-qrmm-w75w-3wpx
Key Facts
Patch immediately- CVE-2018-25031 is a medium-severity vulnerability (CVSS 4.3 v3.1) affecting Swagger Ui (Smartbear), jellyfin (wolfi), org.webjars:swagger-ui (npm) and 4 more products.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 66% probability of exploitation in the next 30 days.
- Fixed versions are available, including @seal-security/swagger-ui 3.17.1-sp999, jellyfin 10.9.2-r1, org.webjars:swagger-ui 4.1.3.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS (30-day exploit likelihood)
66%
Higher than 99.2% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
44/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
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.
Affected Products
14 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| Swagger UiSmartbear | See advisory | 4.1.3 |
| jellyfinwolfi | See advisory | 10.9.2-r1 |
| org.webjars:swagger-uinpm | See advisory | 4.1.3 |
| swagger-ui-distnpm | See advisory | 4.1.3 |
| swagger-ui-reactnpm | See advisory | 4.1.3 |
Patched Releases
@seal-security/swagger-ui
3.17.1-sp999
jellyfin
10.9.2-r1
org.webjars:swagger-ui
4.1.3
Swagger Ui
4.1.3, 2.2.10-tuxcare.1, 3.17.1-sp999
swagger-ui-dist
4.1.3
swagger-ui-react
4.1.3
Swashbuckle.AspNetCore.SwaggerUI
6.3.0
Timeline
Publicly disclosed
Mar 12, 2022
Last updated
Oct 24, 2026
Weakness Type
- CWE-20 Improper Input Validation
- CWE-918 Server-Side Request Forgery
- CWE-922 Insecure Storage of Sensitive Information
References
- advisorynvd.nist.gov · CVE-2018-25031
- advisoryexchange.xforce.ibmcloud.com · 228340
- advisoryexchange.xforce.ibmcloud.com · 228342
- advisoryGHSA advisory
- advisoryGHSA advisory
FAQ
Common Questions.
Swagger UI 4.1.2 and earlier could allow a remote attacker to conduct spoofing attacks.
Affected: Swagger Ui (Smartbear); jellyfin (wolfi); org.webjars:swagger-ui (npm), among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including @seal-security/swagger-ui 3.17.1-sp999, jellyfin 10.9.2-r1, org.webjars:swagger-ui 4.1.3.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2018-25031 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo