# CVE-2019-17495: Cross-site scripting in Swagger-UI

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 5.73% (percentile 94, 2026-11-26)
- **CWE:** CWE-352
- **Aliases:** GHSA-c427-hjc3-wrfw
- **Published:** 2019-10-10T21:04:49.000Z
- **Modified:** 2026-06-17T02:24:00.037Z

## 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)

## 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

- npm `swagger-ui`: affected \< 3.23.11; fixed 3.23.11 (osv)
- Maven `org.webjars:swagger-ui`: affected \< 3.23.11; fixed 3.23.11 (osv)
- Maven `org.webjars.npm:swagger-ui`: affected \< 3.23.11; fixed 3.23.11 (osv)
- Maven `io.springfox:springfox-swagger-ui`: affected \< 2.10.0; fixed 2.10.0 (osv)
- n/a: see vendor advisory (nvd)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2019-17495>
- patch: <https://www.oracle.com/security-alerts/cpuoct2020.html>
- patch: <https://www.oracle.com/security-alerts/cpuApr2021.html>
- patch: <https://www.oracle.com/security-alerts/cpujan2022.html>
- patch: <https://github.com/springfox/springfox/commit/26f72f0d16b166e12c20255a4ee907dc10685cf8>
- exploit: <https://github.com/tarantula-team/CSS-injection-in-Swagger-UI>
- other: <https://github.com/swagger-api/swagger-ui/releases/tag/v3.23.11>
- other: <https://lists.apache.org/thread.html/r3acb7e494cf1aab99b6784b7c5bbddfd0d4f8a484ab534c3a61ef9cf%40%3Ccommits.airflow.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r103579b01da2d0aa0f672b88f811224bbf8ef493aaad845895955e91%40%3Ccommits.airflow.apache.org%3E>
- other: <https://lists.apache.org/thread.html/ref70b940c4f69560d29d6ba792d6c82865e74de3dcad4c92d99b1f8f%40%3Ccommits.airflow.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r853ffeb915a400f899de78124d4e0d77a19379d2e11bf8f4e98c624f%40%3Ccommits.airflow.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r84b327f7a8b6b28857b906c07a66dd98e1d341191fa8d7816514ef96%40%3Ccommits.airflow.apache.org%3E>
- other: <https://www.oracle.com/security-alerts/cpujul2022.html>
- other: <https://github.com/swagger-api/swagger-ui>
- other: <https://lists.apache.org/thread.html/r103579b01da2d0aa0f672b88f811224bbf8ef493aaad845895955e91@%3Ccommits.airflow.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r3acb7e494cf1aab99b6784b7c5bbddfd0d4f8a484ab534c3a61ef9cf@%3Ccommits.airflow.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r84b327f7a8b6b28857b906c07a66dd98e1d341191fa8d7816514ef96@%3Ccommits.airflow.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r853ffeb915a400f899de78124d4e0d77a19379d2e11bf8f4e98c624f@%3Ccommits.airflow.apache.org%3E>
- other: <https://lists.apache.org/thread.html/ref70b940c4f69560d29d6ba792d6c82865e74de3dcad4c92d99b1f8f@%3Ccommits.airflow.apache.org%3E>
- other: <https://security.snyk.io/vuln/maven?search=CVE-2019-17495>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2019-17495>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-c427-hjc3-wrfw> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2019-17495> · JSON: <https://flawdb.com/api/v1/entries/CVE-2019-17495>
