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

Published Jul 29, 2026
·
Updated

A Missing Authorization vulnerability was identified in Keycloak Google Identity Provider implementation. The flaw exists in the external access-token exchange code path, which is used when the Token Exchange V1 feature is enabled. While the standard Google ID-token login flow correctly validates the hd hosted domain claim against the configured hostedDomain setting, the access-token exchange flow skips this validation. When an external access token is provided, Keycloak retrieves the user profile from the Google user-info endpoint but fails to verify that the domain associated with the user matches the restricted domain configured in the Identity Provider settings. An attacker with a valid Google access token for any domain can exploit this flaw if they have access to a confidential client authorized to perform token exchange. Successful exploitation allows the attacker to bypass domain restrictions, obtain a Keycloak access token, and potentially create or link a brokered identity that should have been restricted.

Other sources

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.

MITRE

Affected Software

2 affected components
Keycloak Keycloak Google Identity Provider (external access-token exchange)
redhat Build Of Keycloak

Event History

Jul 29, 2026
Data Sourced
via Red Hat·08:40 AM
DescriptionSeverityAffected Software
Jul 31, 2026
CVE Published
via MITRE·07:08 AM
Data Sourced
via MITRE·07:08 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-18214?

CVE-2026-18214 has a medium severity rating of 6.8.

2

How do I fix CVE-2026-18214?

To fix CVE-2026-18214, ensure that you apply the latest patches from Keycloak that address this vulnerability.

3

What type of vulnerability is CVE-2026-18214?

CVE-2026-18214 is classified as a Missing Authorization vulnerability within the Google Identity Provider implementation.

4

What impact does CVE-2026-18214 have on Keycloak?

CVE-2026-18214 can potentially allow attackers to bypass hosted-domain restrictions during external access-token exchanges.

5

When was CVE-2026-18214 published?

CVE-2026-18214 was published on July 29, 2026.

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