CVE-2026-18214

Keycloak-services: keycloak-services: google external access-token exchange bypasses hosted-domain restriction

State
Published
Severity
6.8 Medium
Published
Jul 31, 2026
Updated
Sep 16, 2026
Reserved
Jul 29, 2026

Read the record on cve.org

Description

Keycloak allows users to log in using Google accounts and can be configured to only allow users from specific Google Workspace domains. A flaw was found where the token exchange feature, which allows swapping a Google token for a Keycloak token, does not check these domain restrictions. This means an attacker with a valid Google account from a different domain could bypass the security check and gain access to the Keycloak realm.

Scores

CVSSScoreVectorSource
3.16.8 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Nredhat

Weaknesses

Affected Products

ProductVersions
Red Hat build of Keycloak 26.6Red Hat
  • 26.6.7-3 and laterNot affected
Red Hat build of Keycloak 26.6Red Hat
  • 26.6-20 and laterNot affected
Red Hat build of Keycloak 26.6Red Hat
  • 26.6-20 and laterNot affected
Red Hat build of Keycloak 26.6.7Red Hat
    Red Hat build of Keycloak 26.6.7Red Hat
      Red Hat build of Keycloak 26.6.7Red Hat
        Red Hat Data Grid 8Red Hat
          Red Hat JBoss Enterprise Application Platform Expansion PackRed Hat
            Red Hat Single Sign-On 7Red Hat

              References

              Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.