Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain realm administrator access
-
DeliveryBypass input sanitization filter
-
ExploitStore malicious script in display field
-
ExecutionVictim loads login page
-
PersistScript executes in victim browser
-
ImpactSession interference or data exposure
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated realm administrator (PR:H) who can reach display fields rendered by the login theme and who can bypass the security filter that sanitizes user input; the malicious script is stored and later executes when any user visits the affected realm's login page (no additional victim interaction beyond normally loading the login page, per UI:N). The primary limiting factor is the high privilege bar: an attacker must already hold or compromise a realm-administrator account, making this a privilege-abuse/insider or post-compromise vector rather than an anonymous remote attack. Impact is confined to users of the affected realm's login page and is limited in confidentiality and integrity (C:L/I:L) with no availability impact. |
| Impact | This is a genuine but modest-priority issue rather than a high-urgency crisis. The CVSS 3.1 score of 5.5 (Medium) is consistent with the vector CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N: although the vector is network-reachable and low-complexity, the decisive limiter is PR:H - exploitation requires an existing realm administrator to plant the stored script, so the attacker must already hold a trusted, privileged role in the Keycloak/Red Hat SSO deployment. This substantially reduces real-world risk because it is a privilege-abuse/second-order attack, not an anonymous internet-facing flaw. Impact is limited (C:L/I:L, A:N) and the scope change (S:C) reflects that the injected JavaScript executes in the browsers of other users visiting the login page rather than compromising the server itself. No EPSS score, KEV listing, POC, or SSVC decision data was supplied in the input, so exploitation-probability and automatability signals cannot be weighed; the absence of these is itself notable - there is no public exploit identified at time of analysis and no evidence of active exploitation. The one point to verify: PR:H requires a malicious or compromised realm admin, which is a high trust bar, so this is realistically a defense-in-depth/insider or post-compromise concern rather than a mass-exploitation threat. |
| Exploit ScenarioDerived | A malicious or compromised realm administrator bypasses the input-sanitization security filter and stores malicious JavaScript in a display field that is rendered on the login theme. When ordinary users subsequently load the login page, the script executes in their browsers, enabling theft of session-related data or interference with the authentication flow. No public exploit code was identified in the provided data, and exploitation is gated by the attacker first holding realm-administrator privileges. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 09, 2026
Stored cross-site scripting in the login theme rendering component of Keycloak (and its downstream Red Hat Build of Keycloak and Red Hat Single Sign-On 7 products) lets a realm administrator inject malicious JavaScript into display fields that is later executed in the browsers of users loading the affected realm's login page. Exploitation requires an authenticated realm administrator (CVSS PR:H) who can both reach the theme display fields and bypass the input-sanitizing security filter, so this is a privilege-abuse or post-compromise vector rather than an anonymous remote attack; impact is limited to the confidentiality and integrity of affected users' sessions (C:L/I:L) with no availability impact. There is no public exploit identified at time of analysis and no CISA KEV listing; overall this is a genuine but modest-priority issue rather than a high-urgency crisis.
RemediationAI
No vendor-released patch version is identified in the provided data, so remediation should begin by monitoring the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-107889 and the Bugzilla entry at https://bugzilla.redhat.com/show_bug.cgi?id=2548355 and applying the fixed Red Hat Build of Keycloak or RH-SSO 7 build as soon as it is published. In the interim, the highest-value compensating control is to tighten realm-administrator assignment: because exploitation requires PR:H realm-admin rights, restrict the realm-admin role to a small, audited set of trusted accounts, remove it from service or integration accounts, and review role mappings for unexpected grants - the trade-off is added administrative friction and the need for an out-of-band approval path for legitimate theme changes. Audit existing realm display fields and custom login themes for injected markup and roll back any unrecognized theme customizations, since stored payloads persist until the field or theme is corrected. Where feasible, serve the login endpoint with a restrictive Content-Security-Policy (for example disallowing inline and third-party scripts) to blunt script execution - this can break themes that rely on inline JavaScript and requires testing against your customized login pages. Also restrict network exposure of the administrative console and admin REST endpoints so that an attacker cannot easily reach the realm-admin functions needed as a prerequisite, and monitor administrator-console activity for post-compromise abuse. Do not treat the absence of a published patch version as confirmation that no fix exists; validate against the vendor advisory before assuming a workaround-only posture.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a CWE-79 cross-site scripting flaw in Keycloak's login theme rendering pipeline. Keycloak ships customizable login themes (FreeMarker-based templates plus realm-level display fields such as realm name, display name, and locale/display text) that are rendered server-side into the login page. A security filter is intended to sanitize attacker-controlled input before it is emitted into that rendered output; the flaw is that this filter can be bypassed, so realm-admin-supplied content survives sanitization and is persisted as stored markup. When any user subsequently opens the affected realm's login page, the injected script executes in their browser origin - the classic stored-XSS trust-boundary violation, where a lower-trust actor (the realm administrator) escalates into the session context of higher-value users (including other administrators). The CVSS vector AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N indicates the attack is network-reachable with low complexity but requires high privileges, needs no additional victim interaction beyond the normal page load, and is scoped-Changed because code executes in the victim's browser rather than the server context, with limited confidentiality and integrity loss and no availability impact. The CPE strings identify the affected builds as wildcarded versions of Red Hat Build of Keycloak and Red Hat Single Sign-On 7 (RH-SSO 7, the supported Red Hat productization of the upstream Keycloak codebase), which share this theme-rendering code path.
Know when Keycloak gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
Stored XSS planted by a realm administrator (PR:H), executing in other users' browsers via the login page (S:C, UI:N), with limited C/I impact and no availability impact.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The org.keycloak.services.resources.SocialResource.callback method in JBoss KeyCloak before 1.0.3.Final allows remote at
A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. Rated high severity (CVSS
An unconstrained memory consumption vulnerability was discovered in Keycloak. Rated high severity (CVSS 7.7), this vulne
Due to improper authorization, Red Hat Single Sign-On is vulnerable to users performing actions that they should not be
It was found that the Keycloak Node.js adapter 2.5 - 3.0 did not handle invalid tokens correctly. Rated critical severit
Authentication bypass in the Apache Airflow Keycloak auth manager provider (apache-airflow-providers-keycloak below 0.10
A privilege escalation flaw was found in the token exchange feature of keycloak. Rated critical severity (CVSS 9.8), thi
A vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used in
A flaw was found in keycloak in versions before 13.0.0. Rated critical severity (CVSS 9.6), this vulnerability is remote
A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to t
A flaw was found in Keycloak. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack c
EUVD-2026-95478
GHSA-gv8g-wx99-6r59
NVD
CVE.org
EPSS
VulDB
Exploit-DB