Keycloak fails to verify if an Identity Provider (IdP) is enabled before issuing tokens
High severity
GitHub Reviewed
Published
Feb 9, 2026
to the GitHub Advisory Database
•
Updated Feb 13, 2026
Package
Affected versions
>= 26.5.0, < 26.5.3
< 26.4.9
Patched versions
26.5.3
26.4.9
Description
Published by the National Vulnerability Database
Feb 9, 2026
Published to the GitHub Advisory Database
Feb 9, 2026
Reviewed
Feb 10, 2026
Last updated
Feb 13, 2026
A flaw was found in Keycloak. A vulnerability exists in the jwt-authorization-grant flow where the server fails to verify if an Identity Provider (IdP) is enabled before issuing tokens. The issuer lookup mechanism (lookupIdentityProviderFromIssuer) retrieves the IdP configuration but does not filter for isEnabled=false. If an administrator disables an IdP (e.g., due to a compromise or offboarding), an entity possessing that IdP's signing key can still generate valid JWT assertions that Keycloak accepts, resulting in the issuance of valid access tokens.
References