CVE-2026-37980: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Red Hat Red Hat Build of Keycloak
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.
AI Analysis
Technical Summary
This vulnerability involves improper neutralization of input in the organization selection login page of Red Hat Build of Keycloak. Specifically, the organization.alias value is inserted into an inline JavaScript onclick handler without proper sanitization, enabling stored XSS attacks. An attacker with elevated administrative privileges can craft a payload that executes arbitrary JavaScript in the context of users viewing the login page. This can lead to session hijacking or unauthorized actions within the affected realm. The CVSS 3.1 vector indicates network attack vector, low attack complexity, high privileges required, user interaction required, and a scope change with high confidentiality impact and low integrity impact.
Potential Impact
Successful exploitation allows arbitrary JavaScript execution in the victim's browser when viewing the login page, potentially leading to session theft, unauthorized account actions, or further attacks against users within the affected realm. The attack requires the attacker to have administrative privileges (manage-realm or manage-organizations) and user interaction (victim must view the login page). There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-37980 for current remediation guidance. Until a fix is available, restrict administrative privileges to trusted users only and consider additional monitoring of administrative actions. Avoid exposing the vulnerable login page to untrusted users where possible.
CVE-2026-37980: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Red Hat Red Hat Build of Keycloak
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves improper neutralization of input in the organization selection login page of Red Hat Build of Keycloak. Specifically, the organization.alias value is inserted into an inline JavaScript onclick handler without proper sanitization, enabling stored XSS attacks. An attacker with elevated administrative privileges can craft a payload that executes arbitrary JavaScript in the context of users viewing the login page. This can lead to session hijacking or unauthorized actions within the affected realm. The CVSS 3.1 vector indicates network attack vector, low attack complexity, high privileges required, user interaction required, and a scope change with high confidentiality impact and low integrity impact.
Potential Impact
Successful exploitation allows arbitrary JavaScript execution in the victim's browser when viewing the login page, potentially leading to session theft, unauthorized account actions, or further attacks against users within the affected realm. The attack requires the attacker to have administrative privileges (manage-realm or manage-organizations) and user interaction (victim must view the login page). There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-37980 for current remediation guidance. Until a fix is available, restrict administrative privileges to trusted users only and consider additional monitoring of administrative actions. Avoid exposing the vulnerable login page to untrusted users where possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-04-06T07:48:39.722Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-37980","vendor":"Red Hat"}]
Threat ID: 69de56e582d89c981fb1904d
Added to database: 4/14/2026, 3:01:57 PM
Last enriched: 4/14/2026, 3:16:51 PM
Last updated: 4/15/2026, 6:03:18 AM
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.