Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials
-
DeliveryCreate organization with malicious alias
-
ExploitUser visits login page
-
ExecutionJavaScript payload executes
-
ImpactSession theft or account manipulation
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. |
| Impact | CVSS 6.9 reflects high integrity impact (C:H) and limited confidentiality/availability effects (I:L, A:N), but the score is mitigated by significant attack constraints: PR:H (requires high-privilege admin role) and UI:R (requires user interaction-viewing the login page). EPSS and KEV status not provided; however, exploitation probability is constrained by the authentication requirement (attackers must already have manage-realm or manage-organizations role, a privileged administrative position). This is an insider threat with session context limitation-the malicious script executes only when a user actively visits the login page. The real-world priority is moderate-to-high: administrators are trusted roles, but compromised or malicious admins pose significant risk to realm users. The attack is not automatable across instances without pre-existing admin access. This should be prioritized for organizations with strict admin access controls or those concerned with insider threats; lower priority for smaller deployments with tightly controlled administrative teams. |
| Exploit ScenarioDerived | A malicious administrator with manage-realm privileges creates a new organization with an alias set to |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 14, 2026
Stored XSS in Keycloak's organization selection login page allows authenticated administrators with manage-realm or manage-organizations privileges to inject malicious JavaScript via the organization.alias field, enabling arbitrary script execution in users' browsers when they access the login page. Exploitation requires high-privilege administrative access and user interaction (viewing the login page), with potential impact including session theft and unauthorized account actions. No public exploit code or active exploitation confirmed at time of analysis.
RemediationAI
Apply the security patch provided by RedHat via the security advisory at https://access.redhat.com/security/cve/CVE-2026-37980. The primary fix involves sanitizing or encoding the organization.alias value before inserting it into the inline onclick handler-specifically, ensuring all JavaScript-context output is properly escaped or using a templating mechanism that prevents injection. As a temporary workaround pending patch deployment, audit and restrict manage-realm and manage-organizations role assignments to highly trusted administrators, and monitor organization alias modifications for suspicious patterns. Confirm patch application by verifying that organization.alias no longer executes injected JavaScript in the login page.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Keycloak's organization selection login page implements a dynamic onclick handler that directly embeds the organization.alias value into inline JavaScript without proper sanitization or encoding. This violates output encoding requirements for JavaScript contexts and constitutes a Stored XSS vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation). The vulnerability exists in the authentication flow where realm organizations are rendered client-side; an attacker with administrative privileges can craft a malicious organization alias containing JavaScript code that persists in Keycloak's configuration. When any user navigates to the organization selection page, the stored payload executes in their browser context, inheriting their session privileges and authentication state.
Know when Build Of 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:R/S:C/C:L/I:L/A:N
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
A flaw was found in Keycloak, specifically in the organization selection login page. A remote attacker with manage-realm or manage-organizations administrative privileges can exploit a Stored Cross-Site Scripting (XSS) vulnerability. This flaw occurs because the organization.alias is placed into an inline JavaScript onclick handler, allowing a crafted JavaScript payload to execute in a user's browser when they view the login page. Successful exploitation enables arbitrary JavaScript execution, potentially leading to session theft, unauthorized account actions, or further attacks against users of the affected realm.
Blast Radius
ecosystem impact- 43 maven packages depend on org.keycloak:keycloak-services (15 direct, 28 indirect)
Ecosystem-wide dependent count for version 26.5.5.
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.
Affected Products (CPE)NVD
More in Build Of Keycloak
View allA heap-based buffer overflow in the HotSpot x86_64 Base64 decode intrinsic affects Oracle Java SE (8u511b33-perf, 17.0.2
A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. Rated high severity (CVSS
A misconfiguration flaw was found in Keycloak. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploita
Keycloak's SAML identity provider broker fails to enforce client disabled status during IdP-initiated SSO flows, allowin
Privilege escalation in Red Hat Build of Keycloak allows low-privileged authenticated users to assume the permissions of
HTTP parameter pollution in Keycloak enables authentication bypass against deployments where OAuth/OIDC client applicati
Keycloak's IdentityBrokerService.performLogin endpoint fails to enforce disabled Identity Provider restrictions, allowin
A vulnerability was found in Undertow where the ProxyProtocolReadListener reuses the same StringBuilder instance across
A session fixation issue was discovered in the SAML adapters provided by Keycloak. Rated high severity (CVSS 7.1), this
A vulnerability was found in Wildfly, where a user may perform Cross-site scripting in the Wildfly deployment system. Ra
Refresh token replay in Keycloak allows a remote attacker who has previously captured a user's refresh token to reuse th
A vulnerability was found in Keycloak. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no
EUVD-2026-22294
GHSA-m32f-8vh9-2hh3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB