CVE-2026-37980 Details
Description
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.
A stored cross-site scripting vulnerability has been identified in the organization selection login page of Keycloak. This issue allows remote attackers with 'manage-realm' or 'manage-organizations' administrative privileges to inject malicious JavaScript that executes in the context of the user's browser. The vulnerability arises because the 'organization.alias' is inserted into an inline JavaScript 'onclick' handler, bypassing proper HTML escaping. Exploitation of this flaw could lead to session theft, unauthorized actions on behalf of the user, or additional attacks against users in the affected realm.
To mitigate this vulnerability, restrict access to the Keycloak administration console and login pages to trusted networks, preferably through a VPN or by configuring firewall rules. Ensure that only trusted administrators are given 'manage-realm' or 'manage-organizations' privileges in Keycloak. Regularly review and audit administrative roles to reduce the risk of unauthorized access.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-37980 | [email protected] | MitigationVendor Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2455325 | [email protected] | Issue TrackingVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| redhat build of keycloak | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 2, 2026 | Initial Analysis | [email protected] |
| Apr 14, 2026 | New CVE Received | [email protected] |