Keycloak security

Keycloak CVEs, release by release

Every Keycloak release fixes security issues, and a CVE score rarely tells you whether your deployment is exposed. For each release, we list the CVEs it fixes and explain the critical and high ones in a few lines: who is affected, and how to mitigate until you upgrade.

Last updated Nov 16, 2026

Keycloak 26.8.2

Released Nov 5, 2026

Fixed by Cloud-IAM in 20h

Available Nov 6, 13:10 GMT+1

Fixes 33 CVEs

Release announcement

26.8.2 fixes 17 high or critical CVEs, the biggest security release of the year.

  • Critical9.2
    brotli4j

    The HTTP2Shell (also called Node2Shell) CVE in the Brotli decoder. Reachable in Keycloak if the experimental feature http-client:v2 is enabled and Keycloak receives a malicious compressed response from a server it calls, such as an IdP. Exposure is therefore limited, but this could theoretically lead to a denial of service or arbitrary code execution.

    Workaround

    Disable http-client:v2.

  • Critical9.1

    An issue in the SAML HTTP-Redirect binding implementation allowed an unauthenticated attacker to bypass the signature check of SAMLResponse, causing the server to process unsigned SAML messages and leading to full account takeover of federated users.

  • High8.8

    An issue in the idp-auto-link authenticator (the "Automatically set existing user" option in the admin console), which handles user identity federation, let an attacker take over a victim's account. The attacker could use an email address that the provider had not verified to link their login to the victim's existing account.

  • High8.1

    In realms using Organizations, an attacker belonging to several organizations could initiate a login and then switch to a registration or password reset path. A flag indicating successful login was not properly cleared, allowing the attacker to enter a victim's username and bypass authentication to gain full access to the victim's account and connected applications.

  • High8.1

    An authenticated attacker who owns a User-Managed Access (UMA) resource could create a policy specifying a resourceType that would apply to all resources of that type, including ones belonging to other users, leading to unauthorized access to, or modification of, sensitive data.

  • High8.1

    An authenticated attacker allowed to register clients through Dynamic Client Registration (with an Initial Access Token, for example) could create a malicious client application that forges identity information. They could configure their client to put a field they control, for example their first name, instead of their user ID in the access token. By changing their first name to another user's ID, they would be able to impersonate that user in other applications.

  • High8.0

    When kcadm was used with a custom truststore, any self-signed certificate was accepted as long as the hostname matched, even if the certificate was not in your truststore. An attacker on the network path could pose as the Keycloak server and capture admin credentials sent by kcadm. The Keycloak server itself is not affected; update kcadm instead.

  • High7.5

    An authenticated attacker could gain full access to a victim's account by using the forgotten password flow on the victim's account and logging in with their own account. This could trigger a race condition which could bind the attacker's session to the victim's account, allowing the attacker to change the victim's password.

  • High7.5

    An unauthenticated attacker could send many requests with unique fabricated theme names, which would be stored on disk in the theme gzip cache. This could lead to disk space exhaustion that survives restarts, causing a denial of service.

  • High7.5

    An unauthenticated attacker could send specially crafted SAML requests to the server containing excessively long dateTime or duration values that were not properly validated before processing. This could lead to high CPU utilization and a denial of service for all users.

  • High7.5

    An unauthenticated attacker could send specially crafted SAML requests to cause threads processing a request to enter an infinite loop, leading to high CPU usage and a denial of service requiring a server restart.

  • High7.5

    An unauthenticated attacker could send a specially crafted SAML request containing a specific element (AuthorityBinding) in an authentication statement. The parser could then enter an infinite loop consuming all available memory, causing the Keycloak service to crash and a denial of service.

  • High7.5

    An unauthenticated attacker could send specially crafted large SAML XML messages to cause the server to consume excessive memory, leading to the application crashing and a denial of service.

  • High7.4

    The Keycloak SAML adapter library (not the Keycloak server) verified the signature of SAML assertions, but failed to verify the issuer of the signed assertion. If multiple identity providers shared the same trusted signing key, an attacker controlling one of them could create validly signed assertions to log into the application as any user, including its administrators.

  • High7.4

    In realms with a SAML identity provider that issues holder-of-key assertions (assertions bound to a key the user must prove they hold), Keycloak didn't check that proof. An attacker who intercepted a victim's signed assertion could replay it and impersonate the victim without needing their private key.

  • High7.1

    An attacker with the manage-clients role could enable the service account of a client they manage and add a hardcoded-claim mapper that writes a realm administrator's identity into its tokens. Service account tokens have no session, so Keycloak resolved their owner from these claims and treated the attacker's token as the administrator's, giving them full control of the realm.

  • High

    In realms using Fine-Grained Admin Permissions v2 and delegating group management to admins other than realm admins, an attacker with a delegated admin account allowed to manage at least one group could move this group to get around DENY rules set on subgroups, and therefore manage sensitive groups to get admin access to the realm.

16 medium CVEs

Keycloak 26.8.1

Released Oct 13, 2026

Fixes 27 CVEs

Release announcement

All HIGH CVEs from this release come from dependencies, exposure to those CVEs is unlikely.

14 medium and 4 low CVEs

Keycloak 26.8.0

Released Oct 1, 2026

Fixes 6 CVEs

Release announcement

No major CVE in this release.

6 medium CVEs

Keycloak 26.7.5

Released Sep 30, 2026

Fixes 14 CVEs

Release announcement

The four higher-rated CVEs come from Keycloak dependencies, so the score does not reflect Keycloak's actual exposure. Two of them would need custom code to become vulnerable, and the other two only impact deployments running in FIPS mode.

  • Critical9.1

    By default, Keycloak does not pass a user-controlled locale or template name to FreeMarker template loading, but a custom extension could. In that case, an attacker could access other files reachable by FreeMarker's template loader.

  • High8.7
    bc-fips

    If you run Keycloak in FIPS mode, an out-of-memory issue can be caused under heavy load when Java finalizers can't keep up with objects being created.

  • High8.7
    bc-fips

    If you run Keycloak in FIPS mode, on Intel hosts where the CPU's random-number instructions keep failing, the crypto library retries forever and can hang a thread indefinitely.

  • High8.6
    owasp-java-html-sanitizer

    The OWASP Java HTML sanitizer is vulnerable to XSS if HtmlPolicyBuilder allows noscript and style tags with allowTextIn inside the style tag. This does not happen in Keycloak's own sanitizer policies but could happen in some custom extensions.

8 medium and 2 low CVEs

Keycloak 26.7.4

Released Sep 16, 2026

Fixes 6 CVEs

Release announcement
  • High8.1

    The policy enforcer that protects applications by matching incoming web requests against defined security policies failed to correctly handle web addresses that contain special encoded characters. An authenticated user could trick the enforcer into applying a less restrictive security policy to gain unauthorized access to some endpoints.

  • High7.5

    A helper in the SAML Redirect Binding implementation does not release native memory after use. Sending repeated malformed SAML requests could lead to native memory exhaustion and a denial of service.

  • High7.5

    The theme localization endpoints accept arbitrary locale tags in requests and store them permanently in memory without limits. Sending a sufficient number of tags could cause the service to run out of memory and crash.

  • High7.4

    When using MySQL or MariaDB as the database in stateless mode, the replay protection mechanism for single-use security artifacts fails to detect reuse due to a row-count semantics mismatch between the database driver's default configuration and Keycloak's application logic. An attacker who intercepts one of these short-lived artifacts can replay it to obtain unauthorized access.

  • High7.2

    A user with the impersonation role can impersonate a realm administrator, allowing them to gain full administrative control over the realm, including the ability to manage users, clients, and roles.

1 medium CVE

Keycloak 26.7.3

Released Aug 31, 2026

Fixes 20 CVEs

Release announcement

The release contained only one High CVE, coming from a dependency which didn't impact instances running in production: it was not packaged in Keycloak, only used for integration tests.

  • High8.8
    api-ldap-client-api

    This LDAP client is only used by Keycloak's integration tests and isn't packaged in Keycloak, so instances running in production aren't affected.

18 medium and 1 low CVEs

Keycloak 26.7.2

Released Aug 19, 2026

Fixes 8 CVEs

Release announcement

This release contains one CRITICAL CVE and most deployments are affected. Read the detailed explanation for mitigation and upgrade your Keycloak deployment.

  • Critical9.1

    If the Forgot password setting is enabled, an unauthenticated attacker could force a password reset without clicking the required email verification link, and get access to any user account by setting new credentials.

    Workaround

    Disable the Forgot password flow for all users while you upgrade your Keycloak version.

  • High7.3

    If you use identity brokering and the legacy client-initiated account-linking endpoint, an attacker could use a malicious OIDC client and trick a user into authenticating to connect the victim's account to an external identity they control. The attacker could then log in as the victim.

    If you use this legacy endpoint, check the migration guide: the fix comes with a breaking change.

6 medium CVEs

Frequently Asked Questions

Can't find your answer? Need any help?

Contact us

Which Keycloak versions still receive security fixes?

Only the latest Keycloak release. Community Keycloak has no LTS version, so older versions stop receiving security patches when a new one comes out. To stay on your version without staying exposed, see our Extended Security Lifecycle.

Is my Keycloak affected by a CVE listed here?

Select your version above to see every CVE fixed since. A high score does not always mean exposure: many CVEs come from dependencies, or only affect a feature you may not use. For critical and high CVEs, we explain who is affected and how to mitigate.

How does Cloud-IAM handle Keycloak CVEs?

On managed Keycloak, we test every new release before making it available, and each upgrade comes with an automatic backup and one-click rollback. Read how we secure the platform on our security page.

How often is this page updated?

With every Keycloak release. The date at the top of the page shows the last update.

Managed Keycloak, Simplified by Cloud-IAM

Focus on your business, we handle the Keycloak

Since 2018, Cloud-IAM has been simplifying Keycloak management for 20M+ users.
Ready to simplify yours?