CVE-2026-14781: Keycloak-services: keycloak-services: oidc email_verified claim incorrectly applied to userinfo email

Published Jul 5, 2026
·
Updated

A flaw exists in the org.keycloak.broker.oidc package where the OIDC broker incorrectly synchronizes the emailverified 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 emailverified status exclusively from the idtoken. The root cause is a lack of validation ensuring that the emailverified claim in the idtoken actually refers to the email address returned by the userinfo endpoint. If these two sources return different email addresses, the idtoken's emailverified=true claim is blindly applied to the userinfo email. Exploitation Conditions: The OIDC identity provider must have trustEmail set to true (non-default).

The userinfo endpoint must be enabled (default).

The attacker must control or have compromised the upstream OIDC provider.

Concrete Impact: Mark arbitrary email addresses as verified in the Keycloak database.

Bypass email-based security controls or verification workflows.

Potential account takeover if the application relies solely on the emailverified flag from the IdP to link accounts.

Other sources

A flaw was found in the OIDC broker component of Keycloak, which manages authentication through external identity providers. When Keycloak is configured to trust the email addresses provided by an external provider, it incorrectly applies the "email verified" status from one part of the login process (the ID token) to an email address found in another part (the user information endpoint). This could allow a malicious or compromised identity provider to falsely mark any email address as "verified" within Keycloak, potentially leading to unauthorized account access or incorrect user data validation.

Red Hat

Affected Software

2 affected components
org.keycloak.broker.oidc
redhat Build Of Keycloak

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Set the upstream OIDC identity provider configuration to trustEmail=false to prevent Keycloak from trusting email addresses provided by the external provider (the issue occurs when trustEmail is true / non-default).

    Keycloak OIDC broker (org.keycloak.broker.oidc) trustEmail = false
  2. Configuration

    Disable the OIDC userinfo endpoint integration (the issue requires the userinfo endpoint to be enabled by default) so Keycloak does not apply mismatched email_verified from the id_token to the userinfo email address.

    Keycloak OIDC broker userinfo endpoint enabled = false
  3. Compensating control

    Ensure only trusted/controlled OIDC identity providers are used, since exploitation requires the attacker to control or have compromised the upstream OIDC provider and a mismatch between userinfo email and id_token email.

Event History

Jul 5, 2026
Data Sourced
via Red Hat·06:33 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·06:55 AM
Data Sourced
via MITRE·06:55 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-14781?

The severity of CVE-2026-14781 is medium with a score of 4.8.

2

How do I fix CVE-2026-14781?

To fix CVE-2026-14781, ensure that the email_verified claim is managed correctly in your OIDC configuration within Keycloak.

3

What vulnerability does CVE-2026-14781 address?

CVE-2026-14781 addresses an issue where the email_verified claim is incorrectly applied to the userinfo email in Keycloak's OIDC broker.

4

What impact does CVE-2026-14781 have on user data?

CVE-2026-14781 can lead to inaccurate email verification states for users, potentially affecting access control decisions.

5

Is CVE-2026-14781 exploitable remotely?

Yes, CVE-2026-14781 can be exploited remotely due to its nature in handling OIDC userinfo responses.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203