[CVE-2026-133221] Pending required actions (e.g. CONFIGURE_TOTP) bypassed by a POST to login-actions/consent without session_code · Issue #55375 · keycloak/keycloak · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
8000
Dismiss alert
{{ message }}
Repository navigation
8000
[CVE-2026-133221] Pending required actions (e.g. CONFIGURE_TOTP) bypassed by a POST to login-actions/consent without session_code #55375
After completing the first authentication factor (password), a user who still has a pending required action, such as CONFIGURE_TOTP enforced by an OTP-required browser flow, can bypass that required action entirely. A single POST request to the /realms/{realm}/login-actions/consent endpoint with a valid tab_id but without a session_code (or with an arbitrary value) is treated as a page refresh instead of being rejected. Authentication then completes and a valid authorization code is issued to the client redirect URI, without the required action having been performed.
The bypass works regardless of whether the client has "Consent required" enabled, and applies to any required action type (CONFIGURE_TOTP, UPDATE_PASSWORD, terms acceptance, etc.).
Version
<= 26.8.2 (also reproduced on 26.8.1; confirmed by the team on 26.4, 26.6, 26.8 and main)
Expected behavior
The consent POST is refused, as with any other request whose session code is missing or invalid, and the user stays on the pending required action.
Actual behavior
Keycloak responds with a redirect to the client containing a valid authorization code. The code can be exchanged for an access token and ID token, even though the user never completed the required action (for example, never configured an OTP). Required actions stop being mandatory for anyone holding the first factor.
This issue was originally tracked in the private repository. Migrated by @abstractj.
Activity
Address review comments on consent required-action bypass tests
Re-run CI
Do not complete login from a consent request without a valid session …