Vulnerabilities / CVE-2019-17495

critical

CVE-2019-17495

Cross-site scripting in Swagger-UI

Published Modified CWE 352
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.

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 and fixed versions

SourcePackageFixed in
maven::GitHub Security Advisory Mavenio.springfox:springfox-swagger-ui, org.webjars.npm:swagger-ui, org.webjars:swagger-ui2.10.0 and 1 more
npm::GitHub Security Advisory npmswagger-ui3.23.11
Show all 4 entries from 2 sources
SourcePackageFixed in
maven::GitHub Security Advisory Mavenio.springfox:springfox-swagger-ui2.10.0
maven::GitHub Security Advisory Mavenorg.webjars.npm:swagger-ui3.23.11
maven::GitHub Security Advisory Mavenorg.webjars:swagger-ui3.23.11
npm::GitHub Security Advisory npmswagger-ui3.23.11

References

All 15 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.