CVE-2026-135768: Keycloak-services: keycloak-services: policy-selected otp flow accepts password sso
A flaw was found in the keycloak-services component of Keycloak, which is used for managing authentication and authorization flows. The issue occurs when a client policy is configured to enforce a high-assurance authentication flow requiring OTP. Due to improper validation of existing sessions, a lower-assurance password-only SSO session can be incorrectly accepted if the request does not explicitly demand a specific assurance level. This allows an attacker with access to a user's password or session to bypass the second factor and obtain tokens claiming a higher level of security.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments are affected when a client policy is configured to require a high-assurance authentication flow with OTP, but requests do not explicitly require a particular assurance level. In that situation, an existing password-only SSO session may be accepted.
What does an attacker need to exploit the flaw?
The attacker needs access to a user's password or an existing user session. They can then obtain tokens that claim a higher security level without completing the required second factor.
Does this affect password-only SSO sessions?
Yes. The flaw specifically involves a lower-assurance password-only SSO session being incorrectly accepted for a policy-selected OTP flow.