CVE-2026-37980
published medium CVSS 3.1 · 6.9Org.keycloak.forms.login: keycloak: keycloak: arbitrary code execution via stored cross-site scripting (xss) in organization selection login page
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.4.12 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Build of Keycloak | Default: affected | redhat · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation
References
3- RHSA-2026:19596 https://access.redhat.com/errata/RHSA-2026:19596
- https://access.redhat.com/security/cve/CVE-2026-37980
- RHBZ#2455325 https://bugzilla.redhat.com/show_bug.cgi?id=2455325
Provider assertions
2redhat · cna
Org.keycloak.forms.login: keycloak: keycloak: arbitrary code execution via stored cross-site scripting (xss) in organization selection login page
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- daa9338cb9f19ec65a3d6fe74d4a259c1d32fa76eb7be03504e0c52a175c97a4
- Ingested
- 26 Nov 2026, 22:28:33 UTC
- Source record
- Official CVE record