CVE-2026-133221: Org.keycloak.authentication: pending required actions (e.g. configure_totp) can be bypassed via post to login-actions/consent without a valid session_code
A flaw was found in Keycloak. An authenticated remote user with a pending required security action, such as configuring multi-factor authentication (MFA), can bypass the mandatory action by submitting a specially crafted request to the consent endpoint without a valid session code. Keycloak incorrectly interprets the submission as a page refresh and completes the authentication process, allowing the user to access the application without fulfilling the required security policies.
Other sources
After completing the first auth factor (password), a user with pending required action (e.g. CONFIGURETOTP) can bypass it by sending POST to /login-actions/consent with valid tabid but without/arbitrary sessioncode. Endpoint treats it as page refresh, auth completes without required action.
— Red Hat
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated remote user who has completed the first authentication factor and has a pending required action can exploit it. The user needs a valid tab_id for the authentication flow; the session_code may be omitted or arbitrary.
Which security controls can be bypassed?
Required actions that must be completed after initial authentication can be bypassed, including CONFIGURE_TOTP. This can allow access to an application without completing the configured mandatory security policy.
Does exploitation require user interaction or elevated privileges?
No user interaction is required. The affected user needs low-level authenticated access: they must be able to complete the first authentication factor and reach a flow with a pending required action.
How is the bypass performed?
The attacker submits a specially crafted POST request to /login-actions/consent with a valid tab_id and no valid session_code. Keycloak treats the request as a page refresh and completes authentication rather than enforcing the pending action.