SecurityContext

CVE-2026-14781: Keycloak - Authentication Bypass

  • Cve: CVE-2026-14781
  • Name: Keycloak - Authentication Bypass
  • 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.
  • Impact: Attackers can mark arbitrary emails as verified, bypassing email verification and potentially taking over accounts relying on email_verified flag.
  • Remediation: Update to the latest Keycloak version with the fix or apply vendor patches addressing email_verified claim validation.
  • Vulnerability type: broken_authentication
  • Vulnerability impact: broken_authentication
  • Requirements: Attacker must control or compromise upstream OIDC provider with trustEmail=true and userinfo endpoint enabled
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.8
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Epss score: 0.00279
  • Epss percentile: 0.20454
  • Assignee: [email protected]
  • Published at: 2026-07-05T07:16:39Z
  • Age in days: 142
  • Modified at: 2026-08-11T01:13:00Z
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-14781
  • Nvd status: analyzed
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-1288Improper Validation of Consistency within Input

References

UrlSourceTags
https://access.redhat.com/security/cve/CVE-2026-14781nvdVendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2497118nvdIssue Tracking, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
redhat:build_of_keycloakall versionsnonvd/v1/products/redhat/build_of_keycloak

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts