CVE-2020-10748 Cross-site Scripting in Keycloak
An XSS vulnerability in Keycloak's data filter allows attackers to execute scripts or conduct further attacks via data URLs.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-10748?
CVE-2020-10748 is a medium-severity cross-site scripting vulnerability in Redhat Keycloak, published on 16 Sep 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A flaw was found in Keycloak's data filter, in version 10.0.1, where it allowed the processing of data URLs in some circumstances. This flaw allows an attacker to conduct cross-site scripting or further attacks.
Weakness: CWE-79
Which versions are affected by CVE-2020-10748?
2 open source packages ship an affected version, including org.keycloak:keycloak-parent. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-parent Maven | All versions | 10.0.2 |
org.keycloak:keycloak-parent Maven | All versions | 10.0.2 |
Products include Redhat Keycloak, Redhat Single Sign-On.
How do I fix CVE-2020-10748?
Upgrade org.keycloak:keycloak-parent to 10.0.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2020-10748 being exploited?
There is no known exploitation of CVE-2020-10748 in the wild and no public exploit code.
Other vulnerabilities in Redhat Keycloak
- CVE-2022-4361 Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC
- CVE-2022-1245 Keycloak vulnerable to privilege escalation on Token Exchange feature
- CVE-2021-20195 keycloak Self Stored Cross-site Scripting vulnerability
- CVE-2019-14910 Keycloak Authentication Error
- CVE-2019-14909 Keycloak Authentication Error
Sources
Also known as GHSA-hgpg-593r-hhvp.