{"id":"CVE-2026-37980","revision":"5c6d4a83d2ca49eead6c54b1d2342ae9","records":[{"revision":"5c6d4a83d2ca49eead6c54b1d2342ae9","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-37980","aliases":[],"title":"Org.keycloak.forms.login: keycloak: keycloak: arbitrary code execution via stored cross-site scripting (xss) in organization selection login page","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.","state":0,"publishedAt":"2026-04-14T14:54:42.871+00:00","modifiedAt":"2026-10-22T20:38:08.354+00:00","affected":[{"ecosystem":"https://access.redhat.com/downloads/content/package-browser/","name":"Red Hat build of Keycloak 26.4.12","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Red Hat\",\n                    \"product\": \"Red Hat build of Keycloak 26.4.12\",\n                    \"collectionURL\": \"https://access.redhat.com/downloads/content/package-browser/\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"cpes\": [\n                        \"cpe:/a:redhat:build_keycloak:26.4::el9\"\n                    ]\n                }"},{"ecosystem":"https://access.redhat.com/downloads/content/package-browser/","name":"rhbk/keycloak-rhel9","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Red Hat\",\n                    \"product\": \"Red Hat Build of Keycloak\",\n                    \"collectionURL\": \"https://access.redhat.com/downloads/content/package-browser/\",\n                    \"packageName\": \"rhbk/keycloak-rhel9\",\n                    \"defaultStatus\": \"affected\",\n                    \"cpes\": [\n                        \"cpe:/a:redhat:build_keycloak:\"\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N","score":6.9,"severity":"MEDIUM"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-37980","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-37980","identifiers":["CVE-2026-37980"]},"retained":false,"historicalAffected":[]}],"coverage":[]}