Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.4 | — | — |
| Red Hat | Red Hat build of Keycloak 26.4.9 | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | keycloak-26.4-iamguarded-compat | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-services | >= 26.5.0, < 26.5.3 | 26.5.3 | GHSA-37gf-gmxv-74wv |
| Maven | org.keycloak:keycloak-services | < 26.4.9 | 26.4.9 | GHSA-37gf-gmxv-74wv |
Advisories 1
- WID-SEC-2026-0356 Keycloak: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 15, 2026
References
- RHSA-2026:2365 vendor-advisory
- RHSA-2026:2366 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-1486 vdb-entry
- RHBZ#2433347 issue-tracking