Read the docs
TI-2018-15258 Aliases CVE-2018-25031GHSA-cr3q-pqgq-m8c2

Swagger UI 4.1.2 and earlier could allow a remote attacker to conduct spoofing attacks.

Priority MEDIUM 53CWE-20Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-918 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.42326 98th percentileScored 2026-11-07
Fix Fixed swagger-ui (npm): 4.1.3org.webjars:swagger-ui (Maven): 4.1.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—swagger-ui (npm)before 4.1.34.1.3Patch availableGHSA-cr3q-pqgq-m8c2
—org.webjars:swagger-ui (Maven)before 4.1.34.1.3Patch availableGHSA-cr3q-pqgq-m8c2
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • swagger-ui (npm) Vendor— Affected before 4.1.3 Fixed in 4.1.3 Patch available GHSA-cr3q-pqgq-m8c2
  • org.webjars:swagger-ui (Maven) Vendor— Affected before 4.1.3 Fixed in 4.1.3 Patch available GHSA-cr3q-pqgq-m8c2

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:smartbear:swagger_ui:*:*:*:*:*:*:*:*before 4.1.3VulnerableSMARTBEAR
  • cpe:2.3:a:smartbear:swagger_ui:*:*:*:*:*:*:*:* Versions before 4.1.3 Vulnerable ·SMARTBEAR

Remediation

  • Fix · GHSA-cr3q-pqgq-m8c2 swagger-ui (npm) Fixed in 4.1.3 Advisory →
  • Fix · GHSA-cr3q-pqgq-m8c2 org.webjars:swagger-ui (Maven) Fixed in 4.1.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2018-25031
  2. 2026-10-03 Alias added: GHSA-cr3q-pqgq-m8c2

References

  • TI-2019-13041 A Cascading Style Sheets (CSS) injection vulnerability in Swagger UI before 3.23.11… CVSS 3.1CRITICAL 9.8
  • TI-2024-14800 Default swagger-ui configuration exposes all files in the module CVSS 3.1MEDIUM 5.3

Sources