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

- Severity: Medium 6.9 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-04-14T14:54:42.871Z
- Modified: 2026-11-26T22:20:30.536Z
- Also known as: GHSA-m32f-8vh9-2hh3
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- Red Hat Red Hat build of Keycloak 26.4.12: no versions given
- rhbk/keycloak-rhel9: no versions given
- org.keycloak:keycloak-services (Maven): up to 26.5.5
- redhat build_of_keycloak: no versions given

## Every score

- redhat: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://access.redhat.com/errata/RHSA-2026:19596> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-37980> (mitigation, vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2455325> (issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-37980> (advisory)
- <https://github.com/keycloak/keycloak/issues/48049> (web)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2026-37980](https://www.cve.org/CVERecord?id=CVE-2026-37980), CVE Terms of Use, modified 2026-11-26
- GitHub Advisory Database: [GHSA-m32f-8vh9-2hh3](https://github.com/advisories/GHSA-m32f-8vh9-2hh3), CC-BY-4.0, modified 2026-10-22
- NVD: [CVE-2026-37980](https://nvd.nist.gov/vuln/detail/CVE-2026-37980), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-37980 · Whole record: https://cve.day/CVE-2026-37980.json · Rebuilt by cve.day 2026-11-26T22:32:13.496Z
