Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2019-17495 EUVD-2019-0696GHSA-c427-hjc3-wrfw

Cross-site scripting in Swagger-UI

Published Oct 10, 2019 · Updated Aug 5, 2024 · Assigned by mitre

Description

A Cascading Style Sheets (CSS) injection vulnerability in Swagger UI before 3.23.11 allows attackers to use the Relative Path Overwrite (RPO) technique to perform CSS-based input field value exfiltration, such as exfiltration of a CSRF token value. In other words, this product intentionally allows the embedding of untrusted JSON data from remote servers, but it was not previously known that <style>@import within the JSON data was a functional attack method.

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 1 repository

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

Affected packages

EcosystemPackageAffectedFixedRecord
Maven io.springfox:springfox-swagger-ui < 2.10.0 2.10.0 GHSA-c427-hjc3-wrfw
Maven org.webjars:swagger-ui < 3.23.11 3.23.11 GHSA-c427-hjc3-wrfw
Maven org.webjars.npm:swagger-ui < 3.23.11 3.23.11 GHSA-c427-hjc3-wrfw
npm swagger-ui < 3.23.11 3.23.11 GHSA-c427-hjc3-wrfw

Advisories 3

References