Skip to main content

Build Of Keycloak CVE-2026-37980

| EUVDEUVD-2026-22294 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-14 secalert@redhat.com GHSA-m32f-8vh9-2hh3
4.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain admin credentials
  2. Delivery
    Create organization with malicious alias
  3. Exploit
    User visits login page
  4. Execution
    JavaScript payload executes
  5. Impact
    Session 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 '; alert('XSS'); //'. When legitimate users visit the Keycloak login page to select an organization, the injected JavaScript executes in their browser context, potentially stealing session cookies or redirecting them to a phishing site. The attack requires the admin to have already compromised an account or been granted privileges; the impact affects all users who subsequently view the organization selection page.

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

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

Alert me

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

maven org.keycloak:keycloak-services no fix

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

NVD PRIMARY 4.8 MEDIUM
AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Red Hat 6.9 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

2
CVSS changed
Oct 22, 2026 - 21:23 NVD
6.9 (MEDIUM) 4.8 (MEDIUM)
CVE Published
Apr 14, 2026 - 15:16 nvd
MEDIUM 6.9

DescriptionNVD

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

EPSS Score
0.1%
Top 84% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

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.1%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
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.

Affected Products (CPE)NVD

cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:-:*:*:*
CVE-2026-114938 HIGH POC
8.1 Nov 17

A heap-based buffer overflow in the HotSpot x86_64 Base64 decode intrinsic affects Oracle Java SE (8u511b33-perf, 17.0.2

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-2024-8883 MEDIUM POC
6.1 Sep 19

A misconfiguration flaw was found in Keycloak. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploita

CVE-2026-3047 HIGH
8.8 Mar 05

Keycloak's SAML identity provider broker fails to enforce client disabled status during IdP-initiated SSO flows, allowin

CVE-2026-9704 HIGH
8.8 May 27

Privilege escalation in Red Hat Build of Keycloak allows low-privileged authenticated users to assume the permissions of

CVE-2026-9689 MEDIUM POC
4.2 May 27

HTTP parameter pollution in Keycloak enables authentication bypass against deployments where OAuth/OIDC client applicati

CVE-2026-3009 HIGH
8.1 Mar 05

Keycloak's IdentityBrokerService.performLogin endpoint fails to enforce disabled Identity Provider restrictions, allowin

CVE-2024-7885 HIGH
7.5 Aug 21

A vulnerability was found in Undertow where the ProxyProtocolReadListener reuses the same StringBuilder instance across

CVE-2024-7341 HIGH
7.1 Sep 09

A session fixation issue was discovered in the SAML adapters provided by Keycloak. Rated high severity (CVSS 7.1), this

CVE-2024-10234 HIGH
7.3 Oct 22

A vulnerability was found in Wildfly, where a user may perform Cross-site scripting in the Wildfly deployment system. Ra

CVE-2026-9802 MEDIUM
6.8 May 28

Refresh token replay in Keycloak allows a remote attacker who has previously captured a user's refresh token to reuse th

CVE-2024-4629 MEDIUM
6.5 Sep 03

A vulnerability was found in Keycloak. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no

Vendor StatusVendor

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