Skip to content
OpenAdvisories
Medium · 4.3 Public exploit CVE-2018-25031 EUVD-2022-1408GHSA-cr3q-pqgq-m8c2

Spoofing attack in swagger-ui

Published Mar 11, 2022 · Updated Aug 5, 2024 · Assigned by mitre

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.

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 15 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.webjars:swagger-ui < 4.1.3 4.1.3 GHSA-cr3q-pqgq-m8c2
npm swagger-ui < 4.1.3 4.1.3 GHSA-cr3q-pqgq-m8c2

Advisories 3

References