Skip to content

Blog

Keycloak 26.8.2: what changed and who should upgrade

Keycloak 26.8.2 lists 33 security fixes and several breaking changes, including an Admin API audience check. What changed, who is affected and how to upgrade.

Author
The RealmDeploy team
Published

Keycloak 26.8.2 came out on 5 November 2026. It is a patch release on the 26.8 line, but it is not a quiet one. Its release notes list 33 security fixes, five weaknesses, an upgrade to Quarkus 3.40.1.1 and a set of bug fixes. The upgrading guide lists more breaking changes than a patch release usually has, and one of them means this patch cannot be rolled out one node at a time.

This post sums up what changed, which CVEs it fixes, who should upgrade first and what to check before you do. The Keycloak team's own announcement is on keycloak.org.

What changed

Most of the release is security work. The fixes fall into a few groups:

  • SAML. Several fixes for denial of service in SAML parsing and SOAP endpoints, a signature bypass in the redirect binding, holder-of-key and ProxyRestriction handling in the identity broker, and issuer checks in the SAML adapter. SAML 1.1 request parsing is now off by default.
  • Dynamic Client Registration and protocol mappers. Fixes for claim forgery through mappers, and a new rule that only realm administrators manage protocol mappers unless you allow specific mapper types.
  • Account takeover paths. Fixes for an authentication race, stale notes in organization identity-first login, and auto-linking of identity provider accounts with unverified email.
  • Admin API. Bearer tokens for the Admin REST API must now be issued for it, through a new built-in kc-admin-api client scope.
  • Token exchange and CIBA. Exchanged tokens can no longer outlive the subject token, and CIBA requests reject reserved claim names.

The non-security changes include a fix for theme resources that could answer 404 on a cold gzip cache, a fix for periodic user storage sync running at twice the configured period, and a fix for realm import when a users file is present.

CVEs fixed

These are the entries under "Security fixes" in the 26.8.2 release notes. Each link goes to the issue on GitHub. On 25 November 2026 none of these CVEs had a GitHub security advisory for keycloak/keycloak, so no severity is published there, and we do not guess one. Our security advisories page lists every advisory that has been published, with its severity.

CVEWhat the release notes sayArea
CVE-2026-92358Cross-browser fallback proof survives successful account linking and self-service unlinkorganizations
CVE-2026-105305Device Authorization Grant bypasses per-client minimum.acr.value enforcementauthentication
CVE-2026-107623OIDC DCR read-modify-write silently disables offline token revocation on backchannel logoutoidc
CVE-2026-107889Stored XSS on the login page via kcSanitize bypassauthentication
CVE-2026-111497Out-of-bounds write in bundled Brotli decoderdist/quarkus
CVE-2026-112201Login-failure upsert trusts MySQL/MariaDB affected-row countNot given
CVE-2026-112208Account takeover via stale SSO_AUTH note in Organization identity-first login (reproduced on 26.8.1)Not given
CVE-2026-110932Keycloak <= 26.8.0 : Unauthenticated persistent disk exhaustion (theme gzip cache)Not given
CVE-2026-107123Unauthenticated DoS in Keycloak SAML endpointNot given
CVE-2026-107124Session takeover by victim logout with injected id_token_hintNot given
CVE-2026-107602Unauthenticated CPU and worker-pool exhaustion (restart required) via SAML 1.1 KeyInfo parser loop on a legal ds:KeyNameNot given
CVE-2026-110931Unauthenticated single-request JVM termination (OutOfMemoryError) via SAML 1.1 AuthorityBinding parser loop, incomplete fix of CVE-2026-7307Not given
CVE-2026-97367DCR azp+sid claim substitution via User Property mappers allows Account REST victim session takeoverNot given
CVE-2026-97174CIBA sub parameter injection causes attacker authentication to issue victim tokensNot given
CVE-2026-114232UMA user-managed permission resourceType field not validated — cross-owner resource accessNot given
CVE-2026-97847Client manager can replace a sessionless token principal and take over the realmNot given
CVE-2026-96547DCR registration-time claim-path gap: attribute mappers forge realm_access.roles from user-editable fieldsNot given
CVE-2026-96457Group-admin DENY bypass via top-level move (GroupsResource, CVE-2026-9099 regression)Not given
CVE-2026-96460Token from token exchange can have unlimited expirationNot given
CVE-2026-97848Protocol mapper with jsonType=JSON bypasses CVE-2026-16102 fix — duplicate resource_access claim in access token; forged resource_access in ID token, userinfo and introspection responseNot given
CVE-2026-109081Principal with only create-client can inject a role into the realm default-rolesNot given
CVE-2026-93998SAML adapter accepts assertions from the wrong configured issuerNot given
CVE-2026-96453kcadm custom truststores trust arbitrary self-signed certificatesNot given
CVE-2026-92857Identity spoofing: a default-allowed DCR protocol mapper writes the reserved sub and aud claimsNot given
CVE-2026-103112Account Takeover via Authentication RaceNot given
CVE-2026-97175Unverified IdP email auto-linking enables account takeoverNot given
CVE-2026-96447Stateless token preferred_username fallback enables identity rebinding after client recreationNot given
CVE-2026-82965SAML SOAP endpoint DoS via unbounded XML parsing on /realms/{realm}/protocol/saml/resolveNot given
CVE-2026-96448FGAP v2 composite-blind role mapping lets manage-users assign a wrapper containing realm-adminNot given
CVE-2026-92855Keycloak SAML Broker Accepts Holder-of-Key Assertions Without Proof of Key PossessionNot given
CVE-2026-92856Keycloak SAML Identity Broker Ignores ProxyRestriction, Allowing Forbidden Downstream Assertion IssuanceNot given
CVE-2026-19688Admin API missing audience checkNot given
CVE-2026-117691SAML redirect binding signature bypass via percent-encoded parameter name (%53AMLResponse) — broker login as any userNot given

The same release also lists five weaknesses that were not given CVE ids, among them hidden clients in realm session statistics under fine-grained admin permissions v2 and unsigned SAML back-channel logout.

Should you upgrade?

Your situationAffected?What to do
You run 26.8.0 or 26.8.1Yes. Two entries name 26.8.0 or 26.8.1 directly, and the rest are fixed in 26.8.2Plan the upgrade to 26.8.2 now, and read the breaking changes below first
You use SAML, as identity broker or with the SAML adapterYes, many of the fixes are in SAML codeUpgrade, then check that your brokers send a bearer SubjectConfirmation and that adapter configs use the realm URL as IdP entity ID
You let clients register themselves (Dynamic Client Registration)YesUpgrade, then add only the protocol mapper types you need, in both the realm setting and the registration policy
Your own clients or service accounts call the Admin REST APIThe fix changes behavior for youAssign the kc-admin-api client scope to those clients before or right after you upgrade, or their tokens get a 401
You run a 26.7 or older lineThese notes cover the 26.8 linePlan the minor upgrade to 26.8 and go straight to 26.8.2

Upgrade notes and breaking changes

All of this comes from the 26.8.2 section of the upgrading guide. Read it in full before you upgrade. The changes most teams will notice:

  • No rolling upgrade. The release adds a new client registration policy provider that older 26.8.x nodes do not know. The guide says a rolling upgrade is not supported for this change: shut the cluster down and start all nodes on 26.8.2 together, or use a recreate update.
  • Admin REST API audience check. Tokens must carry the realm's Admin API URL as audience and the kc-admin-api scope. The scope is created in every realm and given to admin-cli and security-admin-console on upgrade, so the console keeps working. Your own admin clients need it assigned. The guide also warns that during a rolling upgrade, tokens from old nodes would be rejected by new ones.
  • Protocol mappers need realm management rights. Creating, updating or deleting protocol mappers through the Admin REST API now needs permission to manage the realm, unless you list allowed mapper types in the realm setting "Allowed protocol mapper types for client administrators". That list is empty by default.
  • Dynamic Client Registration. Allowed mappers are now the intersection of that realm setting and the registration policy, so by default new clients cannot carry protocol mappers. New policies also stop registration from changing default roles or enabling full scope.
  • SAML broker. Assertions must carry a valid bearer subject confirmation, and assertions with a ProxyRestriction condition are rejected unless you turn off the new "Reject proxy restriction" switch on that identity provider.
  • SAML adapter. The adapter now checks the issuer. Configs that use entityID="idp" must be updated to the realm URL; re-download the adapter config from the admin console.
  • SAML SOAP size limit. SOAP binding requests are limited to 120000 bytes by default. The option spi-login-protocol--saml--max-soap-message-request-size changes it.
  • Token exchange. Access and ID tokens from standard token exchange now expire no later than the subject token.
  • Auto-linking. Linking an identity provider account by email now needs a verified email or Trust Email on that provider.
  • Organizations. Domain-based membership through a linked identity provider now needs a verified email, even with the realm's Verify email setting off. Make sure the realm's SMTP settings work before you upgrade.
  • SAML back-channel logout by SessionIndex now needs "Client signature required" on the client.

The container image and Java4Shell

On 18 November 2026 the Keycloak team published a post about CVE-2026-114938, known as Java4Shell. It is a flaw in OpenJDK, not in Keycloak's code, and it can affect Keycloak on x86-64 hosts whose CPU exposes AVX-512 VBMI. The post says the 26.8 container images were rebuilt with a fixed OpenJDK, and that the updated tags include 26.8.2 and 26.8.2-3, while the x86-64 images tagged 26.8.2-1 and 26.8.2-2 bundle an affected build. If you pin images by tag or digest, make sure you pick a rebuilt one, and follow the post's steps to check the runtime and apply the JVM mitigation where needed.

How we roll it out on RealmDeploy

Tenants run 26.8.1 today, as our versions page says. 26.8.2 is the next patch release for them.

Normally we roll out a patch one Keycloak pod at a time on Premium and Enterprise, so sign-in keeps working. Starter runs one replica, so there a patch means a short restart. 26.8.2 is the exception: because the upgrading guide rules out a rolling upgrade for this release, every pod stops and the new version starts in their place. That is a short interruption on every plan, so we schedule it with you in writing, the same way we schedule minor and major upgrades. We take a fresh backup first, and we use a container image that bundles the fixed OpenJDK.

Before that window, check the changes that depend on your own realm settings: the kc-admin-api scope for clients you use with the Admin REST API, mapper types for Dynamic Client Registration, your SAML brokers and adapters, and your realm's SMTP settings if you use organizations with domains. If you are not sure whether one applies to you, write to us through the dashboard or the contact form.