Keycloak XSS via AssertionConsumerServiceURL & redirect_uri in SAML/OIDC
CVE-2022-4361 Published on July 7, 2023
Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the SAML or OIDC providers. The vulnerability can allow an attacker to execute malicious scripts by setting the AssertionConsumerServiceURL value or the redirect_uri.
Vulnerability Analysis
CVE-2022-4361 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.
Weakness Type
Improper Neutralization of Script in an Error Message Web Page
The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters that could be interpreted as web-scripting elements when they are sent to an error page.
Products Associated with CVE-2022-4361
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2022-4361 are published in these products:
Affected Versions
keycloak Version 21.1.2 is unaffected by CVE-2022-4361Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.