GHSA-c427-hjc3-wrfw

Cross-site scripting in Swagger-UI

At a glance

Published
Updated
CVE
CVE-2019-17495
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

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.

Affected packages

PackageVersions
npm · swagger-uiintroduced 0, fixed 3.23.11
Maven · org.webjars:swagger-uiintroduced 0, fixed 3.23.11
Maven · org.webjars.npm:swagger-uiintroduced 0, fixed 3.23.11
Maven · io.springfox:springfox-swagger-uiintroduced 0, fixed 2.10.0

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database