CVE-2026-107889

Keycloak-services: keycloak-services: stored xss on login page via kcsanitize bypass

Published Oct 9, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
A flaw was found in the login theme rendering component of Keycloak. The issue occurs because the security filter responsible for cleaning user input can be bypassed, allowing a realm administrator to store malicious scripts in display fields. This could result in unauthorized JavaScript execution in the browsers of users visiting the login page, potentially leading to data exposure or session interference.

Analysis

AI-generated

Technical impact

A flaw in the login theme rendering component of Keycloak allows a realm administrator to bypass the security filter and store malicious scripts in display fields. The resulting stored cross‑site scripting can execute arbitrary JavaScript whenever users visit the login page, thereby risking data exposure or session interference. The weakness is a classic Input Validation flaw (CWE‑79).

Affected Systems

The affected products include Red Hat Build of Keycloak and Red Hat Single Sign‑On 7. No specific affected version numbers are listed in the CNA data; the issue applies to the versions of these products that contain the vulnerable login theme logic.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting that there is currently no evidence of active exploitation in the wild. The likely attack vector involves an upstream realm administrator injecting malicious code through the administrative theme editor, which is then rendered on the public login page and executed in visitors’ browsers.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.


OpenCVE Recommended Actions

  • Deploy the latest Red Hat Build of Keycloak or Red Hat Single Sign‑On 7 once an official patch is released.
  • Disable custom login themes until a vendor fix is available; use the default theme that does not contain the vulnerable logic.
  • Restrict realm administrator permissions to trusted personnel only, and audit theme changes for malicious content regularly.

Generated by OpenCVE AI on October 9, 2026 at 06:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak: cpe:/a:redhat:build_keycloak:26.6::el9
References
Type Values Removed Values Added
First Time appeared Redhat build Of Keycloak
Redhat single Sign-on
Vendors & Products Redhat build Of Keycloak
Redhat single Sign-on
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A flaw was found in the login theme rendering component of Keycloak. The issue occurs because the security filter responsible for cleaning user input can be bypassed, allowing a realm administrator to store malicious scripts in display fields. This could result in unauthorized JavaScript execution in the browsers of users visiting the login page, potentially leading to data exposure or session interference.
Title Keycloak-services: keycloak-services: stored xss on login page via kcsanitize bypass
First Time appeared Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
Weaknesses CWE-79
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 6, 2026, 5:34 PM
Reserved
Oct 9, 2026, 4:07 AM
Status
Awaiting Analysis
Published
Oct 9, 2026, 5:16 AM
Modified
Nov 6, 2026, 6:17 PM
Severity
Moderate
Public date
Oct 8, 2026, 3:38 PM