Skip to main content

Keycloak EUVDEUVD-2026-95478

| CVE-2026-107889 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-10-09 redhat GHSA-gv8g-wx99-6r59
5.5
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain realm administrator access
  2. Delivery
    Bypass input sanitization filter
  3. Exploit
    Store malicious script in display field
  4. Execution
    Victim loads login page
  5. Persist
    Script executes in victim browser
  6. Impact
    Session 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (redhat) PRIMARY 5.5 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Red Hat 5.5 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.3%
Top 83% exploitable
Prevalence
High
Keycloak/Red Hat SSO is widely deployed enterprise identity and access management software
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
High

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_single_sign-on_7:*:*:*:*:*:*:*:*
CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2014-3709 HIGH POC
8.8 Oct 18

The org.keycloak.services.resources.SocialResource.callback method in JBoss KeyCloak before 1.0.3.Final allows remote at

CVE-2024-1132 HIGH POC
8.1 Apr 17

A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. Rated high severity (CVSS

CVE-2023-6563 HIGH POC
7.7 Dec 14

An unconstrained memory consumption vulnerability was discovered in Keycloak. Rated high severity (CVSS 7.7), this vulne

CVE-2022-1466 MEDIUM POC
6.5 Apr 26

Due to improper authorization, Red Hat Single Sign-On is vulnerable to users performing actions that they should not be

CVE-2017-7474 CRITICAL
9.8 May 12

It was found that the Keycloak Node.js adapter 2.5 - 3.0 did not handle invalid tokens correctly. Rated critical severit

CVE-2026-76187 CRITICAL
9.8 Sep 15

Authentication bypass in the Apache Airflow Keycloak auth manager provider (apache-airflow-providers-keycloak below 0.10

CVE-2022-1245 CRITICAL
9.8 Jul 08

A privilege escalation flaw was found in the token exchange feature of keycloak. Rated critical severity (CVSS 9.8), thi

CVE-2019-14910 CRITICAL
9.8 Dec 05

A vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used in

CVE-2021-20195 CRITICAL
9.6 May 28

A flaw was found in keycloak in versions before 13.0.0. Rated critical severity (CVSS 9.6), this vulnerability is remote

CVE-2023-6134 MEDIUM POC
5.4 Dec 14

A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to t

CVE-2022-0225 MEDIUM POC
5.4 Aug 26

A flaw was found in Keycloak. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack c

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy