Keycloak SAML Broker Authentication Bypass Vulnerability

Vulnerability

An authentication bypass vulnerability has been identified in Keycloak's SAML broker functionality. When a SAML client is disabled but still set as an Identity Provider (IdP)-initiated broker landing target, it can inadvertently allow users to log in and establish a Single Sign-On (SSO) session. This flaw enables unauthorized access to other active clients without requiring re-authentication, thereby circumventing established security measures.

Impact

Exploiting this vulnerability allows a user to bypass authentication controls, gaining access to resources or applications linked to other enabled clients without the need for re-authentication.

Reproduction

To reproduce this vulnerability, configure a SAML client as disabled in the Keycloak broker realm. Then, set it as an IdP-initiated broker landing target. When a user who exists in the external Identity Provider attempts to log in, the disabled client will still process the authentication, creating a valid Keycloak session that can access other enabled clients without re-authentication.

Remediation

To address this vulnerability, ensure that disabled SAML clients are not set as IdP-initiated broker landing targets. Review and update Keycloak realm configurations to remove any such associations with disabled clients.

Added: Mar 5, 2026, 7:19 PM
Updated: Mar 5, 2026, 7:41 PM

Vulnerability Rating

Custom Algorithm
spread
5.0
impact
5.0
exploitability
6.6
remediation
7.9
relevance
3.5
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.