8000 [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
[go: up one dir, main page]

Skip to content
8000

[CVE-2026-133221] Pending required actions (e.g. CONFIGURE_TOTP) bypassed by a POST to login-actions/consent without session_code #55375

In review

Description

@abstractj

Describe the bug

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

  1. added
    area/authentication
    priority/important
    kind/cve
    severity/medium
    on Nov 19, 2026
  2. added theissue type on Nov 19, 2026
  3. self-assigned this
    on Nov 25, 2026
  4. added 3 commits that reference this issue on Nov 25, 2026
    36c2503
    a7a36ce
    9ea3e86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/authenticationbackport/26.6backport/26.8kind/cvepriority/importantseverity/mediumteam/core-authn

Type

Fields

No fields configured for cve.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

0