CVE-2026-14781: Improper Validation of Consistency within Input in Red Hat Red Hat Build of Keycloak
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). 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 email_verified flag from the IdP to link accounts.
AI Analysis
Technical Summary
The vulnerability exists in the org.keycloak.broker.oidc package of Red Hat Build of Keycloak. When configured with trustEmail=true and the userinfo endpoint enabled, Keycloak retrieves the email address from the userinfo response but obtains the email_verified claim exclusively from the id_token. There is no validation to ensure that the email_verified claim corresponds to the same email address returned by the userinfo endpoint. If these differ, the email_verified=true status from the id_token is incorrectly applied to the userinfo email. Exploitation requires the attacker to control or have compromised the upstream OIDC provider. This flaw can lead to marking arbitrary emails as verified, bypassing email-based security controls, and potentially account takeover.
Potential Impact
An attacker who controls or compromises the upstream OIDC provider can cause Keycloak to mark arbitrary email addresses as verified. This undermines email verification workflows and security controls that rely on the email_verified flag. Applications that trust this flag for account linking or authentication may be vulnerable to account takeover. The CVSS score is 4.8 (medium severity), indicating limited but meaningful impact on confidentiality and integrity without availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory at https://access.redhat.com/security/cve/CVE-2026-14781 for current remediation guidance. Until a fix is available, avoid setting trustEmail=true in OIDC identity provider configurations or ensure the upstream OIDC provider is fully trusted and secure. Review application reliance on the email_verified claim and consider additional verification mechanisms.
CVE-2026-14781: Improper Validation of Consistency within Input in Red Hat Red Hat Build of Keycloak
Description
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). 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 email_verified flag from the IdP to link accounts.
CVSS v3.1
Score 4.8medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the org.keycloak.broker.oidc package of Red Hat Build of Keycloak. When configured with trustEmail=true and the userinfo endpoint enabled, Keycloak retrieves the email address from the userinfo response but obtains the email_verified claim exclusively from the id_token. There is no validation to ensure that the email_verified claim corresponds to the same email address returned by the userinfo endpoint. If these differ, the email_verified=true status from the id_token is incorrectly applied to the userinfo email. Exploitation requires the attacker to control or have compromised the upstream OIDC provider. This flaw can lead to marking arbitrary emails as verified, bypassing email-based security controls, and potentially account takeover.
Potential Impact
An attacker who controls or compromises the upstream OIDC provider can cause Keycloak to mark arbitrary email addresses as verified. This undermines email verification workflows and security controls that rely on the email_verified flag. Applications that trust this flag for account linking or authentication may be vulnerable to account takeover. The CVSS score is 4.8 (medium severity), indicating limited but meaningful impact on confidentiality and integrity without availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory at https://access.redhat.com/security/cve/CVE-2026-14781 for current remediation guidance. Until a fix is available, avoid setting trustEmail=true in OIDC identity provider configurations or ensure the upstream OIDC provider is fully trusted and secure. Review application reliance on the email_verified claim and consider additional verification mechanisms.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-07-05T06:32:45.726Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-14781","vendor":"Red Hat"}]
Threat ID: 6a4a029b27e9c79719530df4
Added to database: 07/05/2026, 07:07:07 UTC
Last enriched: 07/12/2026, 08:59:39 UTC
Last updated: 08/19/2026, 10:57:07 UTC
Views: 185
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.