CVE-2018-25031
CVE-2018-25031 is a medium-severity vulnerability in Smartbear Swagger Ui with a CVSS 3.x base score of 4.3. Its EPSS exploit-prediction score of 42% places it in the 99th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-20.
Key facts
- Severity: Medium (CVSS 3.x base score 4.3)
- CVSS v2: 4.3
- EPSS exploit prediction: 42% (99th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-20
- Affected product: Smartbear Swagger Ui
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2018-25031?
- 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.
- How severe is CVE-2018-25031?
- CVE-2018-25031 has a CVSS 3.x base score of 4.3, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is low, integrity none, and availability none.
- Is CVE-2018-25031 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 42% (99th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2018-25031?
- CVE-2018-25031 affects Smartbear Swagger Ui. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2018-25031?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2018-25031 published?
- CVE-2018-25031 was published on 2022-03-11 and last updated on 2026-06-17.
References
- https://github.com/swagger-api/swagger-ui/issues/4872
- https://github.com/swagger-api/swagger-ui/releases/tag/v4.1.3
- https://security.netapp.com/advisory/ntap-20220407-0004/
- https://security.snyk.io/vuln/SNYK-JS-SWAGGERUI-2314885
Affected products (1)
- cpe:2.3:a:smartbear:swagger_ui:*:*:*:*:*:*:*:*
More vulnerabilities in Smartbear Swagger Ui
- CVE-2019-17495 — Critical (CVSS 9.8): A Cascading Style Sheets (CSS) injection vulnerability in Swagger UI before 3.23.11 allows attackers to use the…
- CVE-2024-22207 — Medium (CVSS 5.3): fastify-swagger-ui is a Fastify plugin for serving Swagger UI. Prior to 2.1.0, the default configuration of…
All CVEs affecting Smartbear Swagger Ui →
Other CWE-20 (Improper Input Validation) vulnerabilities
- CVE-2026-48316 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48281 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48277 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48055 — Critical (CVSS 10.0): Streambert is a cross-platform Electron Desktop App to stream and download any video media. In versions 2.4.0 and…
- CVE-2026-34910 — Critical (CVSS 10.0): A malicious actor with access to the network could exploit an Improper Input Validation vulnerability found in UniFi OS…
- CVE-2026-33587 — Critical (CVSS 10.0): Lack of user input sanitisation in Open Notebook v1.8.3 allows the application user to execute Python code (and…
Browse all CWE-20 (Improper Input Validation) vulnerabilities →