CVE-2021-20195: Input Validation
A flaw was found in keycloak in versions before 13.0.0. A Self Stored XSS attack vector escalating to a complete account takeover is possible due to user-supplied data fields not being properly encoded and Javascript code being used to process the data. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Other sources
The Keycloak server is vulnerable to a Self Stored XSS attack vector, which can be escalated to a complete account takeover using additional attack techniques as specified below. Specifically, the Account page does not HTML-encode the user first name, and last name, which means a malicious HTML code, which executes malicious Javascript code, can be embedded into the Account page. Even though the malicious Javascript code is linked to the attacker user (Self-XSS), it can be exploited on the Keycloak admin browser, using the Impersonation functionality, and thus, the attacker is able to compromise Keycloak.
https://issues.redhat.com/browse/KEYCLOAK-16890
— Red Hat
Affected Software
Event History
Frequently Asked Questions
What is CVE-2021-20195?
CVE-2021-20195 is a vulnerability found in Keycloak versions before 13.0.0, which allows for a Self Stored XSS attack vector that could lead to a complete account takeover.
What is the severity of CVE-2021-20195?
The severity of CVE-2021-20195 is critical with a CVSS score of 9.6.
How can the CVE-2021-20195 vulnerability be exploited?
The CVE-2021-20195 vulnerability can be exploited through a Self Stored XSS attack vector, where user-supplied data fields are not properly encoded and JavaScript code is used to process the data.
Which software versions are affected by CVE-2021-20195?
CVE-2021-20195 affects Keycloak versions before 13.0.0.
How do I mitigate the CVE-2021-20195 vulnerability?
To mitigate the CVE-2021-20195 vulnerability, it is recommended to update Keycloak to version 13.0.0 or later.