CVE-2026-94218: Keycloak-services: keycloak-services: 2fa setup enforcement bypass via authentication session restart endpoint
A flaw was found in the authentication session management of Keycloak, an identity and access management solution. The issue occurs when an administrator enforces a stronger authentication flow, such as mandatory two-factor authentication (2FA) setup, through a client policy. A user can bypass this requirement by manually visiting a specific session restart web link during the login process. This action clears the internal markers that track the required security steps, allowing the user to log in with only a password and gain access without completing the mandated 2FA setup.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this bypass?
Deployments where an administrator enforces mandatory 2FA setup through a Keycloak client policy are exposed. Users subject to that policy may be able to authenticate with only their password instead of completing the required 2FA enrollment.
What does an attacker need to exploit it?
The attacker needs a valid user account and must be able to manually visit the authentication-session restart link during login. The issue does not require user interaction from another party, but the attack complexity is rated high.
Are confidentiality or availability affected?
The provided severity vector indicates no direct confidentiality or availability impact. The impact is limited to integrity, because the mandatory authentication requirement can be bypassed.