CVE-2018-25031
A public proof of concept exists; no exploitation attested.
- Published2022-03-11
- Fixed in4.1.3
- WeaknessCWE-20 · CWE-918 · CWE-922
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2022-03-1107:15CVE publishedNVD
- 2026-10-2319:23First public proof of conceptPoC-in-GitHub
- 2026-10-2319:23EPSS crossed 10 %FIRST EPSS
Observed activity
isMalicious corpus · updated 2026-11-03 15:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2018-25031?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2018-25031?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV · CISA-ADP| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 4.1 | < 4.1.3 | 4.1.3 | NVD · OSV |
| 4.1 | ≤ 4.1.2 | no fix published | CISA-ADP |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- swagger-uiTuxCare:npmfrom 2.2.10-tuxcare.0 · fixed in 2.2.10-tuxcare.1
Fix
- Update Smartbear swagger ui to 4.1.3
Advisories and patches
- github.comPatch
- github.comRelease Notes
- security.snyk.ioPatch
Detection
read 2026-11-02 22:42 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- 15 repositories, unverifiedafine-com/CVE-2018-25031rafaelcintralopes/SwaggerUI-CVE-2018-25031mathis2001/CVE-2018-25031LUCASRENAA/CVE-2018-25031hev0x/CVE-2018-25031-PoC PoC-in-GitHub
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-07-18
- OpenCVESSVC decisionpoc—
- CISA-ADPCVSS 3.14.32024-07-18
- NVDCVSS 3.14.3read 2026-10-23
- NVDCVSS 2.04.3read 2026-10-23
- CISA-ADPweakness (CWE)CWE-20, CWE-918, CWE-9222024-07-18
- NVDweakness (CWE)CWE-20read 2026-10-23
- FIRST EPSSEPSS score42.3 %read 2026-11-02
- PoC-in-GitHubproof of concept15read 2026-11-02
- OSVaffected packages—
- GitHub AdvisoriesadvisoryMODERATE2022-03-14
Identifiers
- EUVD-2022-1408same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-cr3q-pqgq-m8c2same flawGitHub Advisory Database · CC-BY-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- Published
- 2022-03-11
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-cr3q-pqgq-m8c2
Frequently asked questions
What is CVE-2018-25031?
Is CVE-2018-25031 actively exploited?
What is the CVSS score for CVE-2018-25031?
Running swagger-ui? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-cr3q-pqgq-m8c2
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- CISA Vulnrichment · CC0-1.0