Keycloak Vulnerable to Incorrect Authorization
A flaw was found in Keycloak. An authenticated user with existing organization membership can exploit this flaw by accessing user-facing APIs, such as the account API or by requesting an OpenID Connect (OIDC) token with the 'organization' scope. This allows organization metadata to be disclosed in tokens, even after an administrator has explicitly disabled the Organizations feature, potentially leading to incorrect authorization decisions by resource servers.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.keycloak:keycloak-server-spi-private | >= 26.5.0, < 26.6.3, <= 26.4.7 | 26.6.3 |
| Java / Kotlin (Maven) | org.keycloak:keycloak-services | >= 26.5.0, < 26.6.3, <= 26.4.7 | 26.6.3 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-9791
- https://github.com/keycloak/keycloak/issues/49431
- https://github.com/keycloak/keycloak/pull/49541
- https://github.com/keycloak/keycloak/pull/49678
- https://github.com/keycloak/keycloak/pull/49680
- https://github.com/keycloak/keycloak/commit/0e706e7c83d1e971b48656ad9e674eec6adc225b
- https://github.com/keycloak/keycloak/commit/a77c60f2f3e0793046add44120579871e92553df
- https://github.com/keycloak/keycloak/commit/f19e1f2b4e998116d4e321f50ecf99c0f87b862f
- https://access.redhat.com/errata/RHSA-2026:25097
- https://access.redhat.com/errata/RHSA-2026:25098
- https://access.redhat.com/errata/RHSA-2026:30049
- https://access.redhat.com/errata/RHSA-2026:30050
- https://access.redhat.com/security/cve/CVE-2026-9791
- https://bugzilla.redhat.com/show_bug.cgi?id=2482458
- https://github.com/keycloak/keycloak
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N- Weakness (CWE)
CWE-863- Platform
- Java / Kotlin (Maven)
- Package
org.keycloak:keycloak-server-spi-private, org.keycloak:keycloak-services- Disclosed
- 28.05.2026
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-4q93-v92x-p89f - CC BY 4.0
Vulnerability history: org.keycloak:keycloak-server-spi-private
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 7
- First → latest
- 02.2022 05.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 5
- Low 1
Disclosures per year
- 2022: 1
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 5
-
Keycloak Vulnerable to Incorrect Authorization this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.