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
impersonationrole 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.
| CVE | What the release notes say | Area |
|---|---|---|
| CVE-2026-90997 | Default MySQL/MariaDB row counts make stateless replay gates accept reused artifacts | Not given |
| CVE-2026-79651 | Keycloak Unauthenticated Denial of Service via Unbounded Locale Caching | Not given |
| CVE-2026-74909 | Incomplete fix: percent-encoded semicolon bypasses matrix parameter stripping in PathMatcher | Not given |
| CVE-2026-19607 | Username Takeover Leading to Account Lockout | Not given |
| CVE-2026-17526 | Privilege escalation: the "impersonation" role can impersonate a realm administrator | Not given |
| CVE-2026-18212 | SAML Redirect DEFLATE helpers leak native zlib state | Not given |
One of them has a GitHub security advisory with a published severity:
| Advisory | CVE | Severity as published | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-xpwp-2pcm-8xq3 | CVE-2026-90997 | High, CVSS 7.4 | 26.7.0 up to, not including, 26.7.4 | 26.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 situation | Affected? | What to do |
|---|---|---|
You run 26.7.0 to 26.7.3 with --features=stateless on MySQL or MariaDB | Yes, by CVE-2026-90997 | Upgrade now, or disable the stateless feature until you can |
| You run 26.7.0 to 26.7.3 on PostgreSQL or without stateless | Not by CVE-2026-90997, but by the other fixes | Upgrade, or go on to 26.7.5 |
| You use Authorization Services with resource URIs | Behavior changes | Review resources that differ only by matrix parameters, dot segments, trailing slashes or query strings |
| You run Oracle 19 with the full client OCI driver | The startup crash is fixed | Upgrade |
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/../adminare 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/adminalso 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.
Keep reading
Keycloak 26.7.3: what changed and who should upgrade
Keycloak 26.7.3 lists 20 security fixes and rejects redirect URIs that carry OIDC response parameters by default. What changed, who is affected and how to upgrade.
Keycloak 26.7.5: what changed and who should upgrade
Keycloak 26.7.5 lists 14 security fixes, a client policy change for source groups and a fix for rolling restarts. What changed, who is affected, how to upgrade.
Keycloak 26.8.0: what changed and how to plan the upgrade
Keycloak 26.8.0 brings supported multi-cluster v2, SCIM and client secret rotation, login failures in the database, and many breaking changes. What to check first.