8000 [CVE-2026-14781] OIDC broker applies id_token email_verified to userinfo email, marking unverified addresses as verified · Issue #50618 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

[CVE-2026-14781] OIDC broker applies id_token email_verified to userinfo email, marking unverified addresses as verified #50618

Closed

Description

@ahus1

CVE-2026-14781: A flaw exists in the org.keycloak.broker.oidc package where the OIDC broker incorrectly synchronizes the email_verified claim. When an OIDC identity provider is configured with trustEmail=true and the userinfo endpoint is enabled, Keycloak retrieves the email address from the userinfo response but retrieves the email_verified status exclusively from the id_token. The root cause is a lack of validation ensuring that the email_verified claim in the id_token actually refers to the email address returned by the userinfo endpoint. If these two sources return different email addresses, the id_token's email_verified=true claim is blindly applied to the userinfo email. Exploitation Conditions: The OIDC identity provider must have trustEmail set to true (non-default).


This issue was originally tracked in the private repository. Migrated by @ahus1.

Activity

  1. added
    area/oidcOpenID Connect / OAuth 2.0 — tokens, endpoints, scopes, DCR, PAR, DPoP
    kind/cveIssues identified as CVEs on third-party dependencies, or issues which Keycloak is not affected
    on Jul 6, 2026
  2. added theissue type on Jul 6, 2026
  3. self-assigned this
    on Jul 6, 2026
  4. added a commit that references this issue on Jul 14, 2026
    a40e61e
  5. added a commit that references this issue on Jul 14, 2026
    f5249f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/oidcOpenID Connect / OAuth 2.0 — tokens, endpoints, scopes, DCR, PAR, DPoPkind/cveIssues identified as CVEs on third-party dependencies, or issues which Keycloak is not affectedpriority/importantMust be worked on very soonrelease/26.8.0team/core-protocols

Type

Fields

No fields configured for cve.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0