Keycloak: Arbitrary code execution via Stored Cross-Site Scripting (XSS) in organization selection login page
Moderate severity
GitHub Reviewed
Published
Apr 14, 2026
to the GitHub Advisory Database
•
Updated Apr 16, 2026
Description
Published by the National Vulnerability Database
Apr 14, 2026
Published to the GitHub Advisory Database
Apr 14, 2026
Reviewed
Apr 16, 2026
Last updated
Apr 16, 2026
A flaw was found in Keycloak, specifically in the organization selection login page. A remote attacker with
manage-realmormanage-organizationsadministrative privileges can exploit a Stored Cross-Site Scripting (XSS) vulnerability. This flaw occurs because theorganization.aliasis placed into an inline JavaScriptonclickhandler, allowing a crafted JavaScript payload to execute in a user's browser when they view the login page. Successful exploitation enables arbitrary JavaScript execution, potentially leading to session theft, unauthorized account actions, or further attacks against users of the affected realm.References