CVE-2020-1697 XSS in Keycloak
Authenticated malicious users can inject stored XSS via application links in the admin console, potentially compromising other users' sessions.
- 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-1697?
CVE-2020-1697 is a medium-severity cross-site scripting vulnerability in Redhat Keycloak, published on 10 Feb 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
It was found in all keycloak versions before 9.0.0 that links to external applications (Application Links) in the admin console are not validated properly and could allow Stored XSS attacks. An authed malicious user could create URLs to trick users in other realms, and possibly conduct further attacks.
Weakness: CWE-79
Which versions are affected by CVE-2020-1697?
2 open source packages ship an affected version, including org.keycloak:keycloak-core. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-core Maven | All versions | 9.0.0 |
org.keycloak:keycloak-core Maven | All versions | 9.0.0 |
Products include Redhat Keycloak, Redhat Single Sign-On.
How do I fix CVE-2020-1697?
Upgrade org.keycloak:keycloak-core to 9.0.0 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-1697 being exploited?
There is no known exploitation of CVE-2020-1697 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-8vf3-4w62-m3pq.