Every CVE Search/ Get API key

CVE-2019-17495

Cross-site scripting in Swagger-UI

9.8 CriticalPublic exploitFix available

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

5.73%Up 4.9 points since Apr 14, 2021
90%50%10%1%

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 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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

Affected packages
PackageAffectedFixed
swagger-ui
npm
before 3.23.11
3.23.11
org.webjars:swagger-ui
Maven
before 3.23.11
3.23.11
org.webjars.npm:swagger-ui
Maven
before 3.23.11
3.23.11
io.springfox:springfox-swagger-ui
Maven
before 2.10.0
2.10.0
swagger-ui
TuxCare: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-ui
Maven
before 3.23.11, plus listed versions
2.0.122.0.142.0.14-12.0.172.0.18
Show 45 moreShow less
2.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-ui
Maven
before 3.23.11, plus listed versions
2.1.32.1.42.1.52.2.02.2.10
Show 35 moreShow less
2.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-ui
Maven
before 2.10.0, plus listed versions
2.0.12.0.22.0.32.1.02.1.1
Show 12 moreShow less
2.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.

Public exploits
SourceLinkDate
PoC in GitHubSecT0uch/CVE-2019-17495-test2019-12-24

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 15 moreShow less
This page doesn't list everything

Left out here: 41 versions. The JSON record has them.

MoveEnter Open