Live threats

All CVEs / Smartbear

CVE-2018-25031Smartbear Swagger Ui

Medium 4.3 No auth neededHigh EPSS

Priority
47
CVSS 3.1
4.3
EPSS
65.6%
probability of exploitation in 30 days · percentile 99
Auth required
No
Published
Mar 11, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20, CWE-918, CWE-922
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Swagger Ui.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.webjars:swagger-ui < 4.1.3 4.1.3 —
npm swagger-ui < 4.1.3 4.1.3 npm install swagger-ui@4.1.3

Per OSV / GitHub Advisories (GHSA-cr3q-pqgq-m8c2). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
smartbearswagger_ui< 4.1.3

Official sources

References

Links published by the sources. Open them with care.