CVE-2019-17495
Cross-site scripting in Swagger-UI
Also known as GHSA-c427-hjc3-wrfw
Mitigation
- Upgrade swagger-ui to 3.23.11 or later.
- Upgrade org.webjars:swagger-ui to 3.23.11 or later.
- Upgrade org.webjars.npm:swagger-ui to 3.23.11 or later.
- Upgrade io.springfox:springfox-swagger-ui to 2.10.0 or later.
Who should check
- Projects that depend on npm package swagger-ui (< 3.23.11)
- Projects that depend on Maven package org.webjars:swagger-ui (< 3.23.11)
- Projects that depend on Maven package org.webjars.npm:swagger-ui (< 3.23.11)
- Projects that depend on Maven package io.springfox:springfox-swagger-ui (< 2.10.0)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- swagger-ui < 3.23.11; org.webjars:swagger-ui < 3.23.11; org.webjars.npm:swagger-ui < 3.23.11; io.springfox:springfox-swagger-ui < 2.10.0
- Fixed in
- 3.23.11, 2.10.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 5.73% chance of exploitation in 30 days (percentile 94, 2026-11-26)
- CWE
- CWE-352
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm swagger-ui | < 3.23.11 | 3.23.11 | osv |
| Maven org.webjars:swagger-ui | < 3.23.11 | 3.23.11 | osv |
| Maven org.webjars.npm:swagger-ui | < 3.23.11 | 3.23.11 | osv |
| Maven io.springfox:springfox-swagger-ui | < 2.10.0 | 2.10.0 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2019-17495. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2019-17495.md Affected: swagger-ui < 3.23.11; org.webjars:swagger-ui < 3.23.11; org.webjars.npm:swagger-ui < 3.23.11; io.springfox:springfox-swagger-ui < 2.10.0 Fixed in: 3.23.11, 2.10.0 Steps: 1. Search this machine and project for swagger-ui (npm), org.webjars:swagger-ui (Maven), org.webjars.npm:swagger-ui (Maven), io.springfox:springfox-swagger-ui (Maven), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
Other
- https://github.com/swagger-api/swagger-ui/releases/tag/v3.23.11
- https://lists.apache.org/thread.html/r3acb7e494cf1aab99b6784b7c5bbddfd0d4f8a484ab534c3a61ef9cf%40%3Ccommits.airflow.apache.org%3E
- https://lists.apache.org/thread.html/r103579b01da2d0aa0f672b88f811224bbf8ef493aaad845895955e91%40%3Ccommits.airflow.apache.org%3E
- https://lists.apache.org/thread.html/ref70b940c4f69560d29d6ba792d6c82865e74de3dcad4c92d99b1f8f%40%3Ccommits.airflow.apache.org%3E
- https://lists.apache.org/thread.html/r853ffeb915a400f899de78124d4e0d77a19379d2e11bf8f4e98c624f%40%3Ccommits.airflow.apache.org%3E
- https://lists.apache.org/thread.html/r84b327f7a8b6b28857b906c07a66dd98e1d341191fa8d7816514ef96%40%3Ccommits.airflow.apache.org%3E
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://github.com/swagger-api/swagger-ui
- https://lists.apache.org/thread.html/r103579b01da2d0aa0f672b88f811224bbf8ef493aaad845895955e91@%3Ccommits.airflow.apache.org%3E
- https://lists.apache.org/thread.html/r3acb7e494cf1aab99b6784b7c5bbddfd0d4f8a484ab534c3a61ef9cf@%3Ccommits.airflow.apache.org%3E
- https://lists.apache.org/thread.html/r84b327f7a8b6b28857b906c07a66dd98e1d341191fa8d7816514ef96@%3Ccommits.airflow.apache.org%3E
- https://lists.apache.org/thread.html/r853ffeb915a400f899de78124d4e0d77a19379d2e11bf8f4e98c624f@%3Ccommits.airflow.apache.org%3E
- https://lists.apache.org/thread.html/ref70b940c4f69560d29d6ba792d6c82865e74de3dcad4c92d99b1f8f@%3Ccommits.airflow.apache.org%3E
- https://security.snyk.io/vuln/maven?search=CVE-2019-17495
FAQ
Is CVE-2019-17495 being exploited?
There is no confirmed exploitation: CVE-2019-17495 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 5.73% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2019-17495?
Critical: CVSS 9.8 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2019-17495?
swagger-ui < 3.23.11; org.webjars:swagger-ui < 3.23.11; org.webjars.npm:swagger-ui < 3.23.11; io.springfox:springfox-swagger-ui < 2.10.0.
Is there a fix for CVE-2019-17495?
Yes. Fixed in 3.23.11, 2.10.0. Upgrade swagger-ui to 3.23.11 or later. Upgrade org.webjars:swagger-ui to 3.23.11 or later. Upgrade org.webjars.npm:swagger-ui to 3.23.11 or later. Upgrade io.springfox:springfox-swagger-ui to 2.10.0 or later.
How do I check if I'm affected by CVE-2019-17495?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.