ADVISORIES

GitHub Advisory Database

GHSA-4q93-v92x-p89f

Keycloak Vulnerable to Incorrect Authorization

Moderate CVE-2026-9791

Details

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 packages

EcosystemPackageAffected versions
Mavenorg.keycloak:keycloak-server-spi-private
From 26.5.0 before 26.6.3 (fixed in 26.6.3)
Mavenorg.keycloak:keycloak-services
From 26.5.0 before 26.6.3 (fixed in 26.6.3)
Mavenorg.keycloak:keycloak-server-spi-private
All versions up to and including 26.4.7
Mavenorg.keycloak:keycloak-services
All versions up to and including 26.4.7

References