OIDC broker applies id_token email_verified to userinfo email, marking unverified addresses as verified oidc

VV:CVE-2026-14781
MEDIUM 4.8VigieVulnAI-assisted

At a glance

Source
VigieVuln
CVE
CVE-2026-14781
CVE severity
MEDIUM 4.8 from the CVE record
EPSS
0.24 % ·
ENISA EUVD
EUVD-2026-41732
Published
Assigner
redhat
Affected products
Red Hat · Red Hat Build of Keycloak
Red Hat · Red Hat Data Grid 8
Red Hat · Red Hat JBoss Enterprise Application Platform Expansion Pack
Red Hat · Red Hat Single Sign-On 7
Review
Reviewed by a human.
Confidence reported during research
not provided
Updated

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.

Reconciliation

Reconciled with AI assistance. Reviewed by a human.

The publisher release notes identify the correction in 26.8.0. The relevant production code before the patch was checked at each listed affected tag, and the corresponding patch was checked at 26.8.0. The exact tags only are assessed; other releases and exploitability conditions remain unassessed and require human review.

Only the listed ranges and versions were verified; other versions remain undetermined.

Information added or clarified: Maven · org.keycloak:keycloak-services — verified versions : 26.7.0, 26.7.1, 26.7.2 ; not affected : 26.8.0.

Original sources

New evidence

Affected packages

PackageVersions
Maven · org.keycloak:keycloak-services26.7.0, 26.7.1, 26.7.2
Not affected : 26.8.0

Original CVE information

Information from the CVE record and, where indicated, NVD. View the full CVE record

Affected products

ProductAffected versions
Red Hat · Red Hat Build of Keycloak
keycloak-services
Other versions : unaffected
Red Hat · Red Hat Build of Keycloak
rhbk/keycloak-rhel9
Other versions : affected
Red Hat · Red Hat Build of Keycloak
rhbk-openshift-rhel9/rhbk-openshift-rhel9
Other versions : unaffected
Red Hat · Red Hat Data Grid 8
keycloak-services
Other versions : unaffected
Red Hat · Red Hat JBoss Enterprise Application Platform Expansion Pack
keycloak-services
Other versions : unaffected
Red Hat · Red Hat Single Sign-On 7
keycloak-services
Other versions : unaffected

Weaknesses (CWE)

Credits

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.8CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:Nredhat
CVSS 3.1MEDIUM 4.8CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NNVD · secalert@redhat.com (Secondary)

References

Sources

SourceLicence
CVE Project
VigieVuln
NVD (NIST)Public domain