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.
Published: 2026-10-09
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Client‑side script execution that can lead to data exposure or session hijacking
Action: Monitor
AI Analysis

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.

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

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 yet.

History

Mon, 26 Oct 2026 01:00:00 +0000

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

Tue, 13 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 09 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 09 Oct 2026 05:00:00 +0000

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'}


Subscriptions

Redhat Build Keycloak Build Of Keycloak Red Hat Single Sign On Single Sign-on
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-10-13T16:46:42.565Z

Reserved: 2026-10-09T04:07:31.462Z

Link: CVE-2026-107889

cve-icon Vulnrichment

Updated: 2026-10-13T16:46:38.566Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-09T05:16:44.583

Modified: 2026-10-13T17:17:18.353

Link: CVE-2026-107889

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-08T15:38:13Z

Links: CVE-2026-107889 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-26T00:45:06Z

Weaknesses
  • CWE-79

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