CVE-2026-9791
MEDIUM 4.3CVSS 3.1Keycloak 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.
- Published
- 28 May 2026
- Last modified
- 26 Oct 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-863
- Also known as
- GHSA-4q93-v92x-p89f
- Sources
- NVDJSONOSV GHSA-4q93-v92x-p89fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | build_of_keycloakcpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:-:*:*:* |
(no version) | |
| OSV | Maven | org.keycloak:keycloak-server-spi-private | >= 26.5.0, < 26.6.3 | 26.6.3 |
| OSV | Maven | org.keycloak:keycloak-services | >= 26.5.0, < 26.6.3 | 26.6.3 |
| OSV | Maven | org.keycloak:keycloak-server-spi-private | <= 26.4.7 | |
| OSV | Maven | org.keycloak:keycloak-services | <= 26.4.7 |
References
- https://access.redhat.com/errata/RHSA-2026:25097 · WEB
- https://access.redhat.com/errata/RHSA-2026:25098 · WEB
- https://access.redhat.com/errata/RHSA-2026:30049 · WEB
- https://access.redhat.com/errata/RHSA-2026:30050 · WEB
- https://access.redhat.com/security/cve/CVE-2026-9791 · Mitigation, Vendor Advisory, WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2482458 · Issue Tracking, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-9791 · ADVISORY
- https://github.com/keycloak/keycloak/issues/49431 · WEB
- https://github.com/keycloak/keycloak/pull/49541 · WEB
- https://github.com/keycloak/keycloak/pull/49678 · WEB
- https://github.com/keycloak/keycloak/pull/49680 · WEB
- https://github.com/keycloak/keycloak/commit/0e706e7c83d1e971b48656ad9e674eec6adc225b · WEB
- https://github.com/keycloak/keycloak/commit/a77c60f2f3e0793046add44120579871e92553df · WEB
- https://github.com/keycloak/keycloak/commit/f19e1f2b4e998116d4e321f50ecf99c0f87b862f · WEB
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 28 May 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 28 May 2026)