CVE-2022-4361CWE-81

Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the SAML or OIDC providers

Critical · published July 7, 2023

CVSS v3.1
10.0
EPSS
1%
Percentile
52.3
In the wild
Unconfirmed
What it is

🚨 An attacker could craft a malicious URL that exploits this XSS vulnerability in Keycloak, and we’re talking full script execution! 🔥 Think of it like a restaurant where a customer orders off a menu that hasn't been properly vetted. A sneaky chef could slip in a harmful item into the order, served right to the unsuspecting guests! This means an attacker could potentially run scripts in the context of your users, leading to data theft, account hijacking, or even worse, a full-blown site takeover. The devastation could be mind-blowingly simple to execute and absolutely terrifying in its consequences!

Put simply

Think of it like a restaurant where a customer orders off a menu that hasn't been properly vetted. A sneaky chef could slip in a harmful item into the order, served right to the unsuspecting guests! This vulnerability allows an attacker to manipulate the AssertionConsumerServiceURL or the redirect_uri in SAML and OIDC providers, enabling them to inject malicious scripts into the application.

What to do

This means an attacker could potentially run scripts in the context of your users, leading to data theft, account hijacking, or even worse, a full-blown site takeover. The devastation could be mind-blowingly simple to execute and absolutely terrifying in its consequences! Immediately update Keycloak to the latest patched version to mitigate this vulnerability. Review all configurations that involve SAML and OIDC settings for possible misconfigurations, and ensure that input validation is implemented wherever possible. 🛡️ You've got this! By following these steps, you can secure your identity management solution and keep your users safe! 💪🎉

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00691 · 52.3th percentile
Weakness
CWE-81 · Improper Neutralization of Script in an Error Message Web Page
Published
2023-07-07T19:57Z
EPSS history
Timeline
  • 07 JUL 19:57Z
    Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the SAML or OIDC providers
    cvelistv5