CVE-2019-17495
Cross-site scripting in Swagger-UI
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2019-17495- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-352
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2019-17495- Updated
- 2026-11-02
EUVDEUVD-2019-0696 No score
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.
- Record
EUVD-2019-0696- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-c427-hjc3-wrfw
9.3
Cross-site scripting in Swagger-UI
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.
- Record
GHSA-c427-hjc3-wrfw- CVSS 4.0
- 9.3 Critical
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 - CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-79, CWE-352
- Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2019-17495- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-c427-hjc3-wrfw
9.3
Cross-site scripting in Swagger-UI
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.
- Record
GHSA-c427-hjc3-wrfw- CVSS 4.0
- 9.3 Critical
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 - CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-352, CWE-79
- Updated
- 2026-11-02
OSVCLSA-2026-1785468079 No score
TuxCare security update for swagger-ui (3 CVEs)
TuxCare rebuilt swagger-ui to address 3 CVEs. Fixed in 2.2.10-tuxcare.1.
- Record
CLSA-2026-1785468079- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
swagger-uinpm |
before 3.23.11 | 3.23.11 |
org.webjars:swagger-uiMaven |
before 3.23.11 | 3.23.11 |
org.webjars.npm:swagger-uiMaven |
before 3.23.11 | 3.23.11 |
io.springfox:springfox-swagger-uiMaven |
before 2.10.0 | 2.10.0 |
swagger-uiTuxCare:npm From an advisory covering 2 CVEs |
2.2.10-tuxcare.0 up to 2.2.10-tuxcare.1, plus listed versions 2.2.10 |
2.2.10-tuxcare.1 |
org.webjars:swagger-uiMaven |
before 3.23.11, plus listed versions 2.0.122.0.142.0.14-12.0.172.0.18 Show 45 moreShow less2.0.212.0.222.0.242.1.02.1.0-M12.1.0-alpha.62.1.12.1.22.1.32.1.42.1.52.1.8-M12.2.02.2.102.2.10-12.2.22.2.52.2.62.2.83.0.103.0.143.0.173.0.183.0.193.0.23.0.203.0.213.0.33.0.43.0.53.0.73.0.83.1.23.1.43.1.53.1.63.1.73.10.03.11.03.12.03.12.13.13.03.13.13.13.23.13.3 |
3.23.11 |
org.webjars.npm:swagger-uiMaven |
before 3.23.11, plus listed versions 2.1.32.1.42.1.52.2.02.2.10 Show 35 moreShow less2.2.83.0.123.0.143.0.173.0.183.0.23.0.203.0.63.1.43.1.63.1.73.10.03.12.03.17.03.17.63.18.13.19.03.19.13.19.43.20.63.20.73.22.03.22.13.22.23.22.33.23.13.23.103.23.23.23.33.23.43.23.53.3.13.4.13.6.13.9.3 |
3.23.11 |
io.springfox:springfox-swagger-uiMaven |
before 2.10.0, plus listed versions 2.0.12.0.22.0.32.1.02.1.1 Show 12 moreShow less2.1.22.2.22.3.02.3.12.4.02.5.02.6.02.6.12.7.02.8.02.9.12.9.2 |
2.10.0 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | SecT0uch/CVE-2019-17495-test | 2019-12-24 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2019-17495 is a critical vulnerability (CVSS 9.8) in Smartbear Swagger Ui, published October 10, 2019. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 5.73%, the 93rd percentile. Fixed in swagger-ui 3.23.11.
References
oracle.com/security-alerts/cpuoct2020.html
github.com/tarantula-team/CSS-injection-in-Swagger-UI
github.com/swagger-api/swagger-ui/releases/tag/v3.23.11
oracle.com/security-alerts/cpuApr2021.html
lists.apache.org/thread.html/r3acb7e494cf1aab99b6784b7c5bbddfd0d4f8a484ab534c3a61ef9cf%40%3Ccommits.airflow.apache.org%3E
lists.apache.org/thread.html/r103579b01da2d0aa0f672b88f811224bbf8ef493aaad845895955e91%40%3Ccommits.airflow.apache.org%3E
Show 15 moreShow less
lists.apache.org/thread.html/ref70b940c4f69560d29d6ba792d6c82865e74de3dcad4c92d99b1f8f%40%3Ccommits.airflow.apache.org%3E
lists.apache.org/thread.html/r853ffeb915a400f899de78124d4e0d77a19379d2e11bf8f4e98c624f%40%3Ccommits.airflow.apache.org%3E
lists.apache.org/thread.html/r84b327f7a8b6b28857b906c07a66dd98e1d341191fa8d7816514ef96%40%3Ccommits.airflow.apache.org%3E
oracle.com/security-alerts/cpujan2022.html
oracle.com/security-alerts/cpujul2022.html
nvd.nist.gov/vuln/detail/CVE-2019-17495
lists.apache.org/thread.html/r103579b01da2d0aa0f672b88f811224bbf8ef493aaad845895955e91@%3Ccommits.airflow.apache.org%3E
lists.apache.org/thread.html/r3acb7e494cf1aab99b6784b7c5bbddfd0d4f8a484ab534c3a61ef9cf@%3Ccommits.airflow.apache.org%3E
lists.apache.org/thread.html/r84b327f7a8b6b28857b906c07a66dd98e1d341191fa8d7816514ef96@%3Ccommits.airflow.apache.org%3E
lists.apache.org/thread.html/r853ffeb915a400f899de78124d4e0d77a19379d2e11bf8f4e98c624f@%3Ccommits.airflow.apache.org%3E
lists.apache.org/thread.html/ref70b940c4f69560d29d6ba792d6c82865e74de3dcad4c92d99b1f8f@%3Ccommits.airflow.apache.org%3E
github.com/springfox/springfox/commit/26f72f0d16b166e12c20255a4ee907dc10685cf8
security.snyk.io/vuln/maven?search=CVE-2019-17495
github.com/advisories/GHSA-c427-hjc3-wrfw
github.com/swagger-api/swagger-ui
Left out here: 41 versions. The JSON record has them.