Every CVE Search/ Get API key

CVE-2018-25031

Spoofing attack in swagger-ui

4.3 MediumPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
None
Availability
None

Exploit likelihood

42.3%Up 41.3 points since Mar 11, 2022
90%50%10%1%

What each source reports

NVD Score used 4.3

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.

Record
CVE-2018-25031
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:P/I:N/A:N
Weakness
CWE-20, CWE-918, CWE-922
Updated
2026-11-02
CVE List 4.3

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.

Record
CVE-2018-25031
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Weakness
CWE-922, CWE-918, CWE-20
Updated
2026-11-02
EUVDEUVD-2022-1408 4.3

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.

Record
EUVD-2022-1408
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-cr3q-pqgq-m8c2 4.3

Spoofing attack in swagger-ui

Swagger UI before 4.1.3 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.

Record
GHSA-cr3q-pqgq-m8c2
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Weakness
CWE-20, CWE-918, CWE-922
Updated
2026-11-02
OSV 4.3

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.

Record
CVE-2018-25031
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Updated
2026-11-02
OSVGHSA-cr3q-pqgq-m8c2 4.3

Spoofing attack in swagger-ui

Swagger UI before 4.1.3 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.

Record
GHSA-cr3q-pqgq-m8c2
CVSS 3.1
4.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Weakness
CWE-20, CWE-918, CWE-922
Updated
2026-11-02
OSVCLSA-2026-1785468079 No score

TuxCare security update for swagger-ui (3 CVEs)

TuxCare rebuilt swagger-ui to address 3 CVEs. Fixed in 2.2.10-tuxcare.1.

Record
CLSA-2026-1785468079
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
swagger-ui
npm
before 4.1.3
4.1.3
org.webjars:swagger-ui
Maven
before 4.1.3
4.1.3
swagger-ui
TuxCare:npm
From an advisory covering 2 CVEs
2.2.10-tuxcare.0 up to 2.2.10-tuxcare.1, plus listed versions
2.2.10
2.2.10-tuxcare.1
org.webjars:swagger-ui
Maven
before 4.1.3, plus listed versions
2.0.122.0.142.0.14-12.0.172.0.18
Show 45 moreShow less
2.0.212.0.222.0.242.1.02.1.0-M12.1.0-alpha.62.1.12.1.22.1.32.1.42.1.52.1.8-M12.2.02.2.102.2.10-12.2.22.2.52.2.62.2.83.0.103.0.143.0.173.0.183.0.193.0.23.0.203.0.213.0.33.0.43.0.53.0.73.0.83.1.23.1.43.1.53.1.63.1.73.10.03.11.03.12.03.12.13.13.03.13.13.13.23.13.3
4.1.3

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubafine-com/CVE-2018-250312022-05-26
PoC in GitHubrafaelcintralopes/SwaggerUI-CVE-2018-250312023-04-14
PoC in GitHubmathis2001/CVE-2018-250312023-06-28
PoC in GitHubLUCASRENAA/CVE-2018-250312023-11-16
PoC in GitHubhev0x/CVE-2018-25031-PoC2023-12-13
PoC in GitHubjohnlaurance/CVE-2018-25031-test22024-02-22
PoC in GitHubgeozin/POC-CVE-2018-250312024-05-15
PoC in GitHubh2oa/CVE-2018-250312024-05-21
PoC in GitHubnatpakun/SSRF-CVE-2018-25031-2024-07-24
PoC in GitHubKonEch0/CVE-2018-25031-SG2024-11-15
Show 5 moreShow less
Public exploits
SourceLinkDate
PoC in GitHubnigartest/CVE-2018-250312025-04-18
PoC in GitHubh4ckt0m/CVE-2018-25031-test2025-06-18
PoC in GitHubrasinfosec/CVE-2018-250312025-06-18
PoC in GitHubRelicHunt3r/swagger-ui2025-09-20
PoC in GitHublabeebSabbah/CVE-2018-250312025-11-10

History

History
RecordedChangedSources
affected, exploits, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-25031 is a medium vulnerability (CVSS 4.3) in Smartbear Swagger Ui, published March 11, 2022. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 42.3%, the 98th percentile. Fixed in swagger-ui 4.1.3.

References

This page doesn't list everything

Left out here: 91 versions. The JSON record has them.

MoveEnter Open