org.keycloak:keycloak-services@26.6.2

  • latest version

    26.8.1

  • first published

    12 years ago

  • latest version published

    26 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.keycloak:keycloak-services package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Improperly Controlled Modification of Dynamically-Determined Object Attributes

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes via the stripPrivilegedAttributes function in AbstractClientRegistrationProvider. During Dynamic Client Registration, this function processes client attributes but removes only those prefixed with ssf., allowing an attacker with a valid Initial Access Token to register a client with allow.token.introspection.without.audience.check enabled. The attacker can use that client to introspect access tokens issued to other applications in the same realm and view sensitive identity information, roles, and session details.

    Notes

    • The registration step requires Dynamic Client Registration to be enabled for the realm associated with the attacker’s Initial Access Token.

    How to fix Improperly Controlled Modification of Dynamically-Determined Object Attributes?

    There is no fixed version for org.keycloak:keycloak-services.

    [0,)
    • H
    Authorization Bypass Through User-Controlled Key

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key via the IdpEmailVerificationAuthenticator in the first-broker-login flow. When an identity provider omits the broker user ID and a duplicate email triggers linking to an existing local account, the verification proof in IdpEmailVerificationAuthenticator and IdpCreateUserIfUniqueAuthenticator is not bound to a specific upstream identity. An attacker with a different account on the same provider can intercept and complete the verification flow, linking their identity to the victim’s profile and gaining access to the victim’s account.

    How to fix Authorization Bypass Through User-Controlled Key?

    Upgrade org.keycloak:keycloak-services to version 26.6.8, 26.8.1 or higher.

    [,26.6.8)[26.8.0,26.8.1)
    • H
    Authorization Bypass Through User-Controlled Key

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key validation in the user property mapper handling for ClientRegistrationAuth and related DCR token processing. An attacker with a standard user account and a limited Initial Access Token can register a client with a User Property mapper that writes into sensitive internal claims such as realm_access or resource_access, forging administrative roles in the resulting access token. That forged token can then be used to impersonate privileged access, take over other clients, and expose confidential client secrets or realm administration capabilities.

    How to fix Authorization Bypass Through User-Controlled Key?

    Upgrade org.keycloak:keycloak-services to version 26.7.1 or higher.

    [,26.7.1)
    • H
    Allocation of Resources Without Limits or Throttling

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through account and client error reporting in the user-event metrics component. An authenticated user can trigger the flaw by sending requests that produce failed account operations with varying client IDs or scope-related error text, causing raw error messages to be recorded as Prometheus metric labels. When metrics are enabled, each distinct error string creates new metric entries until memory is exhausted, which can crash the service or make Keycloak unavailable. This affects deployments that expose account or consent endpoints with user-event metrics enabled, and it can also pressure downstream observability systems that ingest the high-cardinality labels.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.keycloak:keycloak-services to version 26.7.1 or higher.

    [,26.7.1)
    • H
    Predictable from Observable State

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Predictable from Observable State through the legacy client-initiated account linking endpoint in IdentityBrokerService and LinkedAccountsResource under the OIDC identity brokering component. An attacker can link a victim’s account to an attacker-controlled external identity by sending a forged /realms/{realm}/broker/{provider}/link request with a valid-looking nonce and hash after tricking the victim into authenticating. The vulnerable flow accepts the legacy client-initiated linking URL and uses the hash to authorize the link operation, allowing an attacker-controlled OIDC client to complete the linking process without the victim’s consent. Once linked, the attacker can log in as the victim through the external identity provider and take over the account.

    How to fix Predictable from Observable State?

    Upgrade org.keycloak:keycloak-services to version 26.7.2 or higher.

    [,26.7.2)
    • C
    Weak Password Recovery Mechanism for Forgotten Password

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Weak Password Recovery Mechanism for Forgotten Password in the ResetCredentialEmail.action() flow in services/src/main/java/org/keycloak/authentication/authenticators/resetcred/ResetCredentialEmail.java. An attacker can force the password reset process for any user by sending a crafted reset-credentials request that reaches the action step without the required email verification link or action token. This lets an unauthenticated attacker advance the authentication session into the password update phase and set new credentials for the target account, resulting in account takeover and loss of control over the user’s account.

    How to fix Weak Password Recovery Mechanism for Forgotten Password?

    Upgrade org.keycloak:keycloak-services to version 26.7.2 or higher.

    [26.0.0,26.7.2)
    • H
    Incorrect Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Incorrect Authorization due to claim handling in the UMA claim-token evaluation path. An attacker can access protected resources outside the allowed time window by supplying a forged kc.time.date_time value in a claim_token or UMA permission request, causing policy evaluation to use the attacker-controlled time instead of the server clock. The issue lives in the authorization services code that builds the DefaultEvaluationContext and merges request claims into evaluation attributes. Because user-supplied claims with the kc. prefix are accepted into that context, time-based policies can be bypassed and Resource Permission Tokens can be issued when access should have been denied.

    How to fix Incorrect Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [0,26.7.3)
    • C
    Origin Validation Error

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Origin Validation Error in the IdP-initiated broker endpoint. An attacker who controls a linked upstream SAML identity can send a signed IdP-initiated SSO response to /realms/{realm}/broker/{alias}/endpoint/clients/{client_id} and log in as the associated local user even when that identity provider is configured for account linking only.

    How to fix Origin Validation Error?

    Upgrade org.keycloak:keycloak-services to version 26.7.1 or higher.

    [,26.7.1)
    • H
    Missing Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Missing Authorization through the generic identity-provider creation and update paths in IdentityProvidersResource and IdentityProviderResource. An attacker can link or update an identity provider for an organization by sending an organizationId and organization-specific config in the administrative API request. This lets an administrator with only identity-provider management permission influence which organizations use that provider, affecting how users authenticate into those organizations and allowing unauthorized control over organization login routing.

    How to fix Missing Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.8.0 or higher.

    [0,26.8.0)
    • H
    Replay Attack

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Replay Attack through IdP-initiated broker logins in the services/src/main/java/org/keycloak/broker/saml component. An attacker can hijack a user session and gain unauthorized access by resending a captured, valid SAML assertion that contains a OneTimeUse condition. When Keycloak accepts the assertion without tracking whether that assertion ID was already used, the same unused response can be replayed multiple times against the broker flow. This affects deployments using Keycloak as a SAML identity broker with IdP-initiated login enabled.

    How to fix Replay Attack?

    A fix was pushed into the master branch but not yet published.

    [0,)
    • H
    Missing Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Missing Authorization through the user creation path in UsersResource.create and RepresentationToModel.createGroups. An attacker can add a newly created user to groups they are not authorized to manage by submitting a user creation request with group memberships while FGAP V2 is enabled. This lets a sub-administrator who can create users place those users into restricted groups, exposing sensitive information or granting the new accounts elevated privileges.

    How to fix Missing Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [0,26.7.3)
    • M
    Authorization Bypass Through User-Controlled Key

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key through the admin API’s group hierarchy search under FGAP v2. An attacker can view full parent-group details by searching for a child group they can access, causing the API to return hidden ancestor groups with sensitive attributes and configuration.

    How to fix Authorization Bypass Through User-Controlled Key?

    Upgrade org.keycloak:keycloak-services to version 26.7.2 or higher.

    [,26.7.2)
    • H
    Authorization Bypass Through User-Controlled Key

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key through the getRoleUserMembers path in RoleContainerResource in the keycloak-services admin API. An attacker can expose private user details by sending a GET /admin/realms/{realm}/roles/{role-name}/users request from a restricted admin account with permission to view the role but not individual users. The endpoint returns the full representation of role members without applying the per-user view filter, so user PII such as names and email addresses is disclosed for accounts the caller is not authorized to access.

    How to fix Authorization Bypass Through User-Controlled Key?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [12.0.0,26.7.3)
    • L
    Missing Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Missing Authorization through the TokenManager component in the identity management service. An attacker can continue using previously issued tokens by presenting them after an administrator applies a client-specific “not-before” revocation policy while the realm already has an older non-zero revocation policy in place. This leaves revoked tokens valid for refreshing sessions and accessing user information, so administrators cannot reliably invalidate a client’s existing tokens.

    How to fix Missing Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [9.0.0,26.7.3)
    • M
    Access Control Bypass

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Access Control Bypass through the Client-Initiated Backchannel Authentication token redemption handler in the keycloak-services component. An attacker can obtain access and refresh tokens for a locked user account by redeeming a previously started CIBA authentication request after the account has been locked, provided the request was approved by the user and the attacker has valid client credentials. The vulnerable code path lets token redemption proceed even when brute-force protection has already locked the account. This leaves users exposed to unauthorized token issuance for accounts that were expected to be blocked, undermining the lockout’s protection against continued authentication attempts.

    How to fix Access Control Bypass?

    Upgrade org.keycloak:keycloak-services to version 26.8.0 or higher.

    [0,26.8.0)
    • M
    Reliance on Untrusted Inputs in a Security Decision

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Reliance on Untrusted Inputs in a Security Decision through the client authentication flow in the client policies and assertion handling components. An attacker can authenticate with weaker client credentials by supplying a fake unsigned assertion header that makes the server believe the policy requirements have been satisfied. This defeats administrator-mandated requirements for signed JWT assertions and lets a client complete authentication with a simpler method such as a client secret, weakening client authentication controls.

    How to fix Reliance on Untrusted Inputs in a Security Decision?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [13.0.0,26.7.3)
    • M
    Information Exposure

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Information Exposure due to insufficient group-permission filtering in RealmAdminResource.getRealm(), RealmAdminResource.getDefaultGroups(), and RealmsAdminResource.toRealmRep() in the admin REST API. A delegated administrator can enumerate hidden default groups by requesting the realm representation or the default-groups endpoint after being granted realm-view permissions but denied per-group view access.

    This exposes the names, paths, and identifiers of default groups that should remain hidden, revealing internal organizational structure to users who do not have permission to view those groups.

    Notes

    • FGAP v2 must be enabled for the hidden-default-group checks to matter; the issue is in the delegated-admin/admin-permissions path that evaluates realm and group view rights separately.
    • The disclosure also affects the realm listing returned by admin/realms via RealmsAdminResource.toRealmRep(), not just the dedicated default-groups endpoint.

    How to fix Information Exposure?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [14.0.0,26.7.3)
    • H
    Missing Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Missing Authorization through the Google token exchange flow in the Google Identity Provider token exchange process. An attacker can gain access to a Keycloak realm by supplying a valid Google token from a non-approved Google Workspace domain and exchanging it for a Keycloak token. The issue affects deployments that rely on Google domain restrictions to limit which accounts may sign in, allowing users from disallowed domains to authenticate successfully.

    How to fix Missing Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [3.4.0.CR1,26.7.3)
    • M
    Missing Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Missing Authorization in the admin REST API through the deleteComposites role-composite deletion path in RoleResource, RoleContainerResource, and RoleByIdResource. An attacker with limited administrative permissions can remove privileged child roles from a composite role by sending DELETE requests to the role composite endpoints. The vulnerable endpoints only checked manage permission on the parent role and did not enforce per-child role authorization before role.removeCompositeRole(composite). As a result, a delegated administrator can strip roles they are not authorized to map, breaking role assignments for other users and administrators and causing access loss.

    How to fix Missing Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [,26.7.3)
    • H
    Improper Authentication

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improper Authentication through the Microsoft account token exchange flow in the Microsoft identity provider component. An attacker can gain unauthorized access to a Keycloak realm by supplying a valid Microsoft token from a different organization and exchanging it. This bypasses the tenant restriction intended to limit logins to a specific Microsoft organization, allowing access to sensitive data and unauthorized actions in deployments that rely on that restriction.

    How to fix Improper Authentication?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [3.4.0.CR1,26.7.3)
    • M
    Missing Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Missing Authorization in the RoleContainerResource admin REST composite-role endpoints. A delegated administrator can remove child roles from built-in admin roles by sending name-based composite-role requests against the realm admin API, bypassing the per-role checks that should gate those updates. This can strip essential permissions such as manage-users, manage-clients, or impersonation from administrative roles, disrupting or degrading administrative access within the realm.

    How to fix Missing Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.7.1 or higher.

    [0,26.7.1)
    • M
    Missing Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Missing Authorization due to the full-scope-disabled client-policy executor. An attacker can create a client with full scope access by omitting the fullScopeAllowed field from a client registration or configuration request. This lets a delegated user obtain tokens with unauthorized role mappings for the resulting client. The impact is that clients are created with broader permissions than the policy allows, enabling access to roles the user should not be able to assign.

    How to fix Missing Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [14.0.0,26.7.3)
    • H
    Access of Resource Using Incompatible Type ('Type Confusion')

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') in ProtocolMappersClientRegistrationPolicy via the Dynamic Client Registration client update path. An attacker with client registration privileges can bypass the “Allowed Protocol Mapper Types” restriction by updating an existing mapper so its configuration stays the same while changing its mapper type to a restricted one, then use that mapper to hardcode privileged roles and gain full administrative access to the realm.

    How to fix Access of Resource Using Incompatible Type ('Type Confusion')?

    Upgrade org.keycloak:keycloak-services to version 26.4.14, 26.6.5, 26.7.1 or higher.

    [,26.4.14)[26.6.0,26.6.5)[26.7.0,26.7.1)
    • C
    Improper Verification of Cryptographic Signature

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature during identity provider metadata import. An attacker can forge a SAML response and gain unauthorized access to a user account by importing metadata that includes a signing certificate but omits the key use attribute, leaving signature validation disabled for the broker endpoint. When the imported IdP metadata is processed, the signing certificate is stored, but the response signature is not checked, so a forged assertion can be accepted for a known external identifier. This affects SAML identity brokering in deployments that import attacker-supplied or maliciously modified IdP metadata.

    How to fix Improper Verification of Cryptographic Signature?

    Upgrade org.keycloak:keycloak-services to version 26.4.14, 26.6.5, 26.7.1 or higher.

    [,26.4.14)[26.6.0,26.6.5)[26.7.0,26.7.1)
    • H
    Information Exposure

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Information Exposure through the OIDCClientSecretConfigWrapper in services/src/main/java/org/keycloak/protocol/oidc/OIDCClientSecretConfigWrapper.java. An attacker can retrieve the resolved plaintext value of a vault-backed rotated client secret by calling the rotated client-secret Admin REST endpoint for a client configured with a vault placeholder. A delegated administrator with view-only access to client secret data receives the actual secret instead of the stored vault expression, exposing sensitive credentials and allowing unauthorized use of the client secret.

    How to fix Information Exposure?

    Upgrade org.keycloak:keycloak-services to version 26.7.2 or higher.

    [0,26.7.2)
    • M
    Missing Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Missing Authorization through the OIDC token introspection endpoint in the keycloak-services component. An attacker can access sensitive token claims by sending an introspection request for a token issued to a different audience from a confidential client configured to receive signed JWT introspection responses. The endpoint marks the token inactive for that client, but it still returns the token’s full claims inside the signed JWT response. This lets an unauthorized client recover audience-restricted token data that should not be exposed.

    How to fix Missing Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.8.0 or higher.

    [0,26.8.0)
    • M
    Improper Verification of Cryptographic Signature

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature in the backchannel logout endpoint of the keycloak-services component. An attacker can force a user to log out by sending a logout request without a cryptographic signature when an OIDC identity provider is configured to skip signature validation. This lets the attacker disrupt the user’s active session and break access to applications until the user signs in again.

    How to fix Improper Verification of Cryptographic Signature?

    There is no fixed version for org.keycloak:keycloak-services.

    [0,)
    • M
    Information Exposure

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Information Exposure through the AuthenticationManagementResource in services/src/main/java/org/keycloak/services/resources/admin/AuthenticationManagementResource.java. An attacker can retrieve raw authenticator configuration secrets by requesting authentication config data through the admin API as a user with view-only permissions. The vulnerable GET paths return ModelToRepresentation.toRepresentation(config) without masking sensitive entries, so values such as reCAPTCHA secret keys are exposed in the response and can also appear in administrative logs. This leaks third-party service credentials to unauthorized administrators and can expose secrets used by the realm’s authentication flows.

    Notes

    • The leak is limited to the admin GET endpoints that return authenticator-config representations, so only deployments where administrators can view authentication configs through the admin API are exposed.
    • The exposed values are those stored in authenticator config metadata, including provider-defined secrets and legacy/unknown keys that are not recognized as non-secret by the provider registry.

    How to fix Information Exposure?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [0,26.7.3)
    • H
    Improper Validation of Consistency within Input

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improper Validation of Consistency within Input in the identity provider update flow for OIDC identity providers. An attacker can capture the existing client secret by sending an update as a delegated administrator that reuses the masked client secret sentinel value while changing security-sensitive settings such as the token URL. The vulnerable code path manages identity provider configuration updates in keycloak-services, and it accepts the update without forcing the secret to be revalidated against the changed endpoint. This lets the attacker redirect secret-bearing requests to an endpoint they control and expose the real client secret, breaking the confidentiality of the identity provider credentials.

    How to fix Improper Validation of Consistency within Input?

    Upgrade org.keycloak:keycloak-services to version 26.8.1 or higher.

    [2.4.0.CR1,26.8.1)
    • M
    DNS Rebinding

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to DNS Rebinding in the client host restriction logic. An attacker can bypass wildcard domain restrictions on client registration or updates by controlling the reverse DNS for their connection and presenting a hostname that merely ends with the configured suffix, such as *.example.com, even when it is not a real subdomain. This lets an unauthorized party modify clients in realms that rely on host-based allowlists, breaking the intended restriction on who can register or update client settings.

    How to fix DNS Rebinding?

    Upgrade org.keycloak:keycloak-services to version 26.8.0 or higher.

    [12.0.0,26.8.0)
    • L
    Improper Validation of Consistency within Input

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improper Validation of Consistency within Input during OIDC authentication flow processing. An attacker can inject duplicate security parameters into the login response by supplying a crafted redirect URL with a fragment portion that bypasses the parameter-pollution check. If a client is configured with a wildcard redirect URI and the application trusts the injected values, the attacker can cause session fixation or account confusion, breaking the user’s login session and causing the app to associate the session with the wrong identity or security context.

    How to fix Improper Validation of Consistency within Input?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [26.5.0,26.7.3)
    • M
    Authorization Bypass Through User-Controlled Key

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key due to the OAuth 2.0 authorization code handling. An attacker can obtain access tokens for a victim’s identity by intercepting an authorization code and redeeming it with their own client. The affected code path does not bind the authorization code to the client that originally requested it, so a stolen code can be substituted during token exchange and used to log in as the victim.

    How to fix Authorization Bypass Through User-Controlled Key?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [0,26.7.3)
    • H
    Insertion of Sensitive Information Into Sent Data

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data through OrganizationInvitationResource.toRepresentation() in OrganizationInvitationResource.java. An attacker can retrieve the secret invitation link by creating or listing an organization invitation through the admin REST API, then use that link to register new accounts and add them to the organization without manage-users permission or access to the invited mailbox. This lets a delegated organization administrator bypass the intended invitation workflow and create unauthorized organization members.

    Notes

    • The leaked link was exposed in both the single-invitation get response and the invitations list response, so any caller with organization-invitation read access could recover it without going through the email-delivery path.
    • The admin console also rendered a “Copy invite link” action from the same response field, so deployments using the web UI exposed the secret link there as well as through the REST API.

    How to fix Insertion of Sensitive Information Into Sent Data?

    Upgrade org.keycloak:keycloak-services to version 26.7.3 or higher.

    [26.5.0,26.7.3)
    • M
    Improper Validation of Consistency within Input

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improper Validation of Consistency within Input due to improper validation of the email_verified claim in the OIDC authentication. An attacker can cause arbitrary email addresses to be marked as verified by configuring a malicious or compromised upstream identity provider and exploiting the lack of correlation between the id_token and the userinfo endpoint responses.

    Note: This is only exploitable if the OIDC identity provider is configured with trustEmail set to true and the userinfo endpoint is enabled.

    How to fix Improper Validation of Consistency within Input?

    Upgrade org.keycloak:keycloak-services to version 26.8.0 or higher.

    [0,26.8.0)
    • M
    Incorrect Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Incorrect Authorization via the ClientResource component in the admin REST API when Fine-Grained Admin Permissions (FGAP) v2 is enabled. An attacker can modify the contents of issued tokens and inject unauthorized data or permissions by bypassing authorization checks on client scope assignments.

    Note: This is only exploitable if the attacker holds a delegated administrator role with specific client management permissions and possesses knowledge of internal resource identifiers (UUIDs).

    How to fix Incorrect Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.7.1 or higher.

    [0,26.7.1)
    • M
    Incorrect Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Incorrect Authorization in the RoleContainerResource process when FGAP v2 is enabled. An attacker can access unauthorized group metadata by enumerating role-to-group mappings if they possess a delegated administrative role with specific view permissions.

    Note: This is only exploitable if the attacker already has a delegated administrative role with view permissions for roles but not for all groups.

    How to fix Incorrect Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.6.6, 26.7.2 or higher.

    [0,26.6.6)[26.7.0,26.7.2)
    • H
    Authorization Bypass Through User-Controlled Key

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key via the addChild endpoint in the Admin REST API when Fine-Grained Admin Permissions v2 are enabled. An attacker with delegated manage-members permissions on a low-privilege group can bypass authorization checks to reparent any group, including those with elevated privileges, under their control. This enables the attacker to reset passwords of members in the targeted group and potentially take over the entire realm by compromising privileged accounts.

    How to fix Authorization Bypass Through User-Controlled Key?

    Upgrade org.keycloak:keycloak-services to version 26.4.13, 26.6.4 or higher.

    [,26.4.13)[26.5.0,26.6.4)
    • M
    Directory Traversal

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Directory Traversal via the keystore parameter when creating a key provider component. An attacker can determine the existence and readability of files on the server by submitting crafted filesystem paths. This is only exploitable if the attacker possesses the "manage-realm" administrative role.

    How to fix Directory Traversal?

    Upgrade org.keycloak:keycloak-services to version 26.4.13, 26.6.4 or higher.

    [,26.4.13)[26.5.0,26.6.4)
    • M
    Insufficient Session Expiration

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Insufficient Session Expiration via the Registration Access Token process. An attacker can gain unauthorized access to resources and modify client configurations by using a previously issued token to re-enable a disabled client, reset its secret, and restore OAuth client_credentials capability, thereby bypassing administrative controls.

    How to fix Insufficient Session Expiration?

    Upgrade org.keycloak:keycloak-services to version 26.4.13, 26.6.4 or higher.

    [,26.4.13)[26.5.0,26.6.4)
    • H
    Cross-site Scripting (XSS)

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the client URI validation process. An attacker can execute arbitrary scripts in the context of the application by registering a malicious client with a specially crafted redirect URI using mixed-case javascript: or data: schemes and tricking a victim into interacting with a crafted link, such as during the logout flow. This is only exploitable if the attacker has administrative privileges with manage-client permission or access to client registration endpoints, and user interaction occurs.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.keycloak:keycloak-services to version 26.4.13, 26.6.4 or higher.

    [,26.4.13)[26.5.0,26.6.4)
    • H
    Incorrect Privilege Assignment

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Incorrect Privilege Assignment in the Identity Provider mapper process. An attacker can gain unauthorized administrative privileges by creating a hardcoded role mapping that assigns elevated roles to themselves or others, thereby bypassing intended authorization checks.

    How to fix Incorrect Privilege Assignment?

    Upgrade org.keycloak:keycloak-services to version 26.8.0 or higher.

    [0,26.8.0)
    • H
    Improper Verification of Cryptographic Signature

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via the JWT Authorization Grant flow due to algorithm confusion in signature verification. An attacker can gain unauthorized access and potentially escalate privileges by forging assertions and creating unauthorized access tokens.

    How to fix Improper Verification of Cryptographic Signature?

    Upgrade org.keycloak:keycloak-services to version 26.6.4 or higher.

    [,26.6.4)
    • M
    Insufficient Granularity of Access Control

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Insufficient Granularity of Access Control in the getMembers() methods that serve the group members endpoint. An admin user with delegated access to read group memberships and users can read user profile attributes that are explicitly configured to be denied by using their delegated administrative access to expose those values over the group membership API.

    How to fix Insufficient Granularity of Access Control?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [,26.6.3)
    • M
    Information Exposure

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Information Exposure via the SAML ECP endpoint when specially crafted SOAP requests are sent with varying client IDs. An attacker can obtain protocol type information associated with different client IDs by analyzing the faultstrings in the responses.

    How to fix Information Exposure?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [2.0.0.Final,26.6.3)
    • H
    Improper Validation of Specified Quantity in Input

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input in the TokenEndpoint endpoint when an oversized subject_token JWT exceeding 4000 characters is submitted. An attacker can gain unintended service account permissions by exploiting the fallback to client credentials that occurs when the oversized token is silently dropped.

    How to fix Improper Validation of Specified Quantity in Input?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [,26.6.3)
    • M
    Incorrect Privilege Assignment

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Incorrect Privilege Assignment via improper enforcement of scope mapping in the Fine-Grained Admin Permissions (FGAPv2) feature due to ScopeMappedResource and ScopeMappedClientResource write endpoints missing a call to requireMapClientScope per role. An attacker can gain unauthorized access to privileged roles by injecting arbitrary realm roles into a client's scope, which are then projected into a user's authentication token upon login through the compromised client. This is only exploitable if Fine-Grained Admin Permissions (FGAPv2) are enabled and the attacker has fine-grained client management permissions, and a privileged user subsequently authenticates through the affected client.

    How to fix Incorrect Privilege Assignment?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [26.2.0,26.6.3)
    • L
    Improper Validation of Consistency within Input

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improper Validation of Consistency within Input via the authentication process when a client is configured with a wildcard redirect URI. An attacker can cause the client application to incorrectly process attacker-controlled OIDC response parameters by crafting a malicious authorization URL and tricking a user into clicking it.

    How to fix Improper Validation of Consistency within Input?

    Upgrade org.keycloak:keycloak-services to version 26.7.0 or higher.

    [0,26.7.0)
    • H
    Improper Verification of Cryptographic Signature

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via the requestObjectSignatureAlg policy bypass during the processing of JWE-encrypted request objects containing raw JSON plaintext. An attacker can submit unauthorized claims by crafting specially formed JWE-encrypted request objects, potentially compromising data integrity within the OpenID Connect authorization flow.

    How to fix Improper Verification of Cryptographic Signature?

    Upgrade org.keycloak:keycloak-services to version 26.7.1 or higher.

    [0,26.7.1)
    • H
    Insufficient Session Expiration

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Insufficient Session Expiration due to the startupTime reset during server restart when revokeRefreshToken=true and persistent session storage is enabled. An attacker can gain unauthorized access to user accounts by replaying a previously revoked refresh token that was captured before the restart.

    How to fix Insufficient Session Expiration?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [,26.6.3)
    • L
    Authentication Bypass by Primary Weakness

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Authentication Bypass by Primary Weakness via the Client-Initiated Backchannel Authentication (CIBA) flow. An attacker can continue authentication attempts and obtain tokens by exploiting the CIBA flow even when a user account is locked due to brute-force protection. This is only exploitable if CIBA is explicitly enabled and configured, and the user approves the authentication request on their device.

    How to fix Authentication Bypass by Primary Weakness?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [,26.6.3)
    • M
    Out-of-bounds Read

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Out-of-bounds Read via the authorization header parsing in the ClientRegistrationAuth component. An attacker can cause a temporary disruption of service by sending a specially crafted request with a malformed 'Authorization: Bearer' header, which triggers an ArrayIndexOutOfBoundsException and results in an HTTP 500 error.

    How to fix Out-of-bounds Read?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [9.0.0,26.6.3)
    • H
    Time-of-check Time-of-use (TOCTOU) Race Condition

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition in the role rename endpoint. An attacker can gain unauthorized administrative privileges by exploiting a timing window between permission checks and their enforcement. The attacker can escalate their access to realm-wide administrative control, even after their original permissions are revoked and across system reboots.

    How to fix Time-of-check Time-of-use (TOCTOU) Race Condition?

    Upgrade org.keycloak:keycloak-services to version 26.7.0 or higher.

    [0,26.7.0)
    • H
    Incorrect Authorization

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Incorrect Authorization via the user-facing APIs when the Organizations feature is disabled. An attacker can access organization membership data and obtain tokens containing organization claims by making authenticated requests, even after an administrator has disabled the feature at the realm level.

    How to fix Incorrect Authorization?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [,26.6.3)
    • M
    Improper Handling of Insufficient Permissions or Privileges

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Improper Handling of Insufficient Permissions or Privileges in the org.keycloak.protocol.oidc component when specific condition providers such as client-type, client-roles, client-attributes, or client-scopes are used. An attacker can gain unauthorized access and obtain authentication tokens by bypassing configured policy restrictions through Resource Owner Password Credentials (ROPC) grants, even when policies are set to block such requests. This is only exploitable if client policies rely on these condition providers to enforce ROPC grant rejection.

    How to fix Improper Handling of Insufficient Permissions or Privileges?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [,26.6.3)
    • M
    Incorrect Implementation of Authentication Algorithm

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Incorrect Implementation of Authentication Algorithm through the TokenManager and OIDC endpoint token checks in the access token introspection, refresh token, and userinfo paths. An attacker can keep using a token after a realm-level not-before event by presenting it to introspection, refresh, or userinfo requests when client-level not-before values are also in play. This lets revoked or otherwise invalidated tokens remain accepted, allowing continued access to protected account, userinfo, and token-refresh operations until the token expires.

    How to fix Incorrect Implementation of Authentication Algorithm?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [9.0.0,26.6.3)
    • M
    Client-Side Enforcement of Server-Side Security

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Client-Side Enforcement of Server-Side Security through the processAction() registration flow in the WebAuthn authenticator components. An attacker can register a credential that does not match the realm’s WebAuthn policy by modifying the browser-side registration parameters or by using an authenticator that returns a different algorithm than requested. The server accepts and stores credentials with disallowed algorithms or other mismatched registration properties, and the same stored credential is then used for future logins without any server-side policy check, leaving users with WebAuthn credentials that do not enforce the administrator’s configured requirements.

    How to fix Client-Side Enforcement of Server-Side Security?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [9.0.2,26.6.3)
    • H
    Authorization Bypass Through User-Controlled Key

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key in the cross-session email verification process. An attacker can gain persistent access to another user's local account by consuming the verification proof when controlling an upstream identity provider account that shares an email address with the victim. This is only exploitable if the attacker controls an upstream identity provider account with the same email as the victim, the victim is actively linking their account, email verification is enabled, and the identity provider is configured with trustEmail=false.

    How to fix Authorization Bypass Through User-Controlled Key?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [26.3.0,26.6.3)
    • M
    Forced Browsing

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Forced Browsing via the account and account-api features when the server is started with --features-disabled=account,account-api. An authenticated user with API access can perform unauthorized read and write operations on specific account endpoints by bypassing the intended feature disablement.

    How to fix Forced Browsing?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [,26.6.3)
    • M
    Origin Validation Error

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Origin Validation Error in the UMA token endpoint when the azp claim from a client-supplied JWT is used to set the Access-Control-Allow-Origin header before the JWT signature is validated. An attacker can cause low-sensitivity information from authorization server error responses to be exposed by injecting a specially crafted JWT with a malicious azp value, which is reflected as the CORS origin.

    Note:

    This is only exploitable if the target client is misconfigured with webOrigins: ["*"].

    How to fix Origin Validation Error?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [,26.6.3)
    • L
    Server-side Request Forgery (SSRF)

    org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the client_session_host parameter during refresh token requests when the client is configured to use the backchannel.logout.url with the application.session.host placeholder. An attacker can cause the server to make HTTP requests to arbitrary internal or external endpoints by manipulating this parameter, potentially leading to information disclosure by probing internal networks or APIs.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade org.keycloak:keycloak-services to version 26.6.3 or higher.

    [,26.6.3)