CVE-2026-37980: Keycloak: Arbitrary code execution via Stored Cross-Site Scripting (XSS) in organization selection login page
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.
Published Apr 14, 2026 · Updated Oct 22, 2026
Affected packages
org.keycloak:keycloak-services
- Ecosystem
- Maven
- Affected
- <= 26.5.5
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-services
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-11800
Keycloak has authentication bypass via jwt algorithm confusion
high8.1Nov 3, 2026CVE-2026-9083
Keycloak vulnerable to information disclosure through arbitrary filesystem path probing
medium4.9Oct 29, 2026CVE-2026-9086
Keycloak vulnerable to cross-site scripting (xss) via case-insensitive uri validation bypass
high7.3Oct 29, 2026CVE-2026-9705
Keycloak: Attacker can re-enable and take over disabled clients via registration access token
medium6.5Oct 29, 2026CVE-2026-9799
Keycloak allows unauthorized access to resources via uma permission ticket bypass
medium4.6Oct 29, 2026CVE-2026-9800
Keycloak vulnerable to authorization bypass via incorrect uri comparison
high8.1Oct 29, 2026
