Cross-site scripting in Keycloak - CVE-2026-107889
Published: November 19, 2026
Vulnerability details
The vulnerability allows a remote privileged user to execute arbitrary JavaScript in the browsers of users who visit the affected realm's login page.
The vulnerability exists due to improper neutralization of stored HTML in login theme rendering when post-processing reactivates content that kcSanitize had left inert. A remote privileged user can store malicious content in a realm display field to execute JavaScript when the login page renders that content.
The WebAuthn error page is also affected by a variant that executes without a click.