Stored Cross-Site Scripting Vulnerability in Keycloak Login Page
CVE-2026-37980
6.9MEDIUM
What is CVE-2026-37980?
A flaw in Keycloak's organization selection login page allows remote attackers with manage-realm or manage-organizations privileges to exploit a stored Cross-Site Scripting (XSS) vulnerability. This occurs due to the inclusion of organization.alias in an inline JavaScript onclick handler. By crafting a malicious JavaScript payload, an attacker can execute code in the browser of users who visit the login page, resulting in potential session theft, unauthorized actions on accounts, or subsequent attacks against users within the affected realm.