Skip to content

Blog

Keycloak 26.7.4: what changed and who should upgrade

Keycloak 26.7.4 fixes six CVEs, among them a high-severity replay bypass on MySQL and MariaDB in stateless mode. Who is affected and what to do before upgrading.

Author
The RealmDeploy team
Published

Keycloak 26.7.4 came out on 16 September 2026. It is a short patch release: its release notes list six security fixes, an upgrade to Quarkus 3.33.3.2 and nine bug fixes. One of the security fixes has a published GitHub advisory, rated high. The Keycloak team's announcement is on keycloak.org.

What changed

  • Replay protection on MySQL and MariaDB. In stateless mode with MySQL or MariaDB, a mismatch in how the database driver counts rows let single-use artifacts be reused. This is the one with an advisory, below.
  • Denial of service. Locale caching was unbounded and could be grown by unauthenticated requests.
  • Authorization Services. A percent-encoded semicolon could get past the matrix parameter stripping in PathMatcher, the incomplete fix of an earlier issue.
  • Accounts and roles. Fixes for a username takeover that could lock out an account, and for the impersonation role being able to impersonate a realm administrator.
  • SAML. The redirect binding's DEFLATE helpers no longer leak native zlib state.

Bug fixes include a performance issue reported against 26.6.2, an Oracle 19 driver crash at startup since 26.6.0, and an error in the admin console when opening a subgroup.

CVEs fixed

These are the entries under "Security fixes" in the 26.7.4 release notes, each linked to its issue.

CVEWhat the release notes sayArea
CVE-2026-90997Default MySQL/MariaDB row counts make stateless replay gates accept reused artifactsNot given
CVE-2026-79651Keycloak Unauthenticated Denial of Service via Unbounded Locale CachingNot given
CVE-2026-74909Incomplete fix: percent-encoded semicolon bypasses matrix parameter stripping in PathMatcherNot given
CVE-2026-19607Username Takeover Leading to Account LockoutNot given
CVE-2026-17526Privilege escalation: the "impersonation" role can impersonate a realm administratorNot given
CVE-2026-18212SAML Redirect DEFLATE helpers leak native zlib stateNot given

One of them has a GitHub security advisory with a published severity:

AdvisoryCVESeverity as publishedAffectedFixed in
GHSA-xpwp-2pcm-8xq3CVE-2026-90997High, CVSS 7.426.7.0 up to, not including, 26.7.426.7.4

The advisory says the flaw needs stateless mode on MySQL or MariaDB, and that an attacker who intercepts single-use artifacts, such as JWT client assertions, DPoP proofs or one-time codes, can replay them. Its workaround is to disable the stateless feature. On 25 November 2026 the other five CVEs had no GitHub advisory for keycloak/keycloak, so no severity is published there, and we do not guess one. Our security advisories page lists every advisory with a published severity.

Should you upgrade?

Your situationAffected?What to do
You run 26.7.0 to 26.7.3 with --features=stateless on MySQL or MariaDBYes, by CVE-2026-90997Upgrade now, or disable the stateless feature until you can
You run 26.7.0 to 26.7.3 on PostgreSQL or without statelessNot by CVE-2026-90997, but by the other fixesUpgrade, or go on to 26.7.5
You use Authorization Services with resource URIsBehavior changesReview resources that differ only by matrix parameters, dot segments, trailing slashes or query strings
You run Oracle 19 with the full client OCI driverThe startup crash is fixedUpgrade

Upgrade notes and breaking changes

The 26.7.4 section of the upgrading guide has one breaking change. When Keycloak matches a request against a resource URI in Authorization Services, the policy enforcer and the UMA permission endpoint, it now normalizes the URI first:

  • Matrix parameters, including percent-encoded ones, are stripped.
  • Dot segments such as /foo/../admin are resolved, including percent-encoded ones.
  • Percent-encoded slashes are decoded and duplicate slashes collapsed.
  • A trailing slash is stripped.
  • The query string and fragment are dropped, so /api/admin also matches /api/admin?foo=bar.

This stops a changed form of a protected URI from slipping past its policy to a more permissive one, such as a catch-all /*. If your configuration tells resources apart by any of these parts, review it.

How we roll it out on RealmDeploy

CVE-2026-90997 does not apply to RealmDeploy clusters: each tenant runs on its own PostgreSQL, not MySQL or MariaDB. Tenants run 26.8.1 today, as our versions page says, which is outside the advisory's affected range.

For a patch like this one, we replace Keycloak pods one at a time on Premium and Enterprise, so sign-in keeps working. Starter runs one replica, so a patch there means a short restart. Minor and major upgrades are scheduled with you in writing. Our upgrades page has the details.