Cross-site scripting in Keycloak - CVE-2026-107889

 

Cross-site scripting in Keycloak - CVE-2026-107889

Published: November 19, 2026


Vulnerability identifier: #VU167885
CSH Severity: Low
CVSS v4: 4.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-107889
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

Keycloak

How to mitigate CVE-2026-107889

Install security update from vendor's website.

Keycloak - update to 26.8.2

External References

Related Security Bulletins