Critical

Cross-site scripting in Swagger-UI

  • Disclosed: 15.10.2019
  • Updated: 11.10.2026 12:21

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) io.springfox:springfox-swagger-ui < 2.10.0 2.10.0
Java / Kotlin (Maven) org.webjars.npm:swagger-ui < 3.23.11 3.23.11
Java / Kotlin (Maven) org.webjars:swagger-ui < 3.23.11 3.23.11
npm package swagger-ui < 3.23.11 3.23.11

References

CVSS score 9.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-352, CWE-79
Platform
Java / Kotlin (Maven), npm
Package
io.springfox:springfox-swagger-ui, org.webjars.npm:swagger-ui, org.webjars:swagger-ui
Disclosed
15.10.2019
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-c427-hjc3-wrfw - CC BY 4.0

Vulnerability history: io.springfox:springfox-swagger-ui

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.