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.
Published: 2026-07-31
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Keycloak can authenticate users via Google accounts and enforce a restriction that only users from a specific Google Workspace domain are allowed. The vulnerability lies in the token exchange feature, which permits swapping a received Google token for a Keycloak token without re‑checking the domain restriction. As a result, an attacker possessing a valid Google account that belongs to a different domain can acquire a Keycloak token and gain unauthorized access to the realm. The weakness is a missing authorization check, classified as CWE-862.

Affected Systems

The flaw affects Red Hat Build of Keycloak, Red Hat Single Sign‑On 7, Red Hat Data Grid 8, and the JBoss Enterprise Application Platform Expansion Pack as distributed by Red Hat. No specific affected versions are listed in the CNA data, so all currently supported releases should be considered vulnerable until a patch is applied.

Risk and Exploitability

The CVSS score of 6.8 indicates a moderate severity for this missing protection. The EPSS score is < 1% and the vulnerability is not listed in CISA’s KEV catalog, suggesting that there are no known active exploits in the wild yet. The likely attack path requires an attacker to create or obtain a Google account outside the allowed domain and then use this account to perform a token exchange request to the vulnerable endpoint. Because the check is performed at token exchange time, the attacker can bypass the domain restriction without further privileges.

Generated by OpenCVE AI on August 4, 2026 at 11:24 UTC.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.


OpenCVE Recommended Actions

  • Check Red Hat security advisories or vendors’ product release information for updates that address the issue.
  • If an update is not available, restrict or disable the external token exchange endpoint, or limit access to trusted internal IP ranges.
  • Implement monitoring of token exchange requests to detect and alert on usage from disallowed Google domains.

Generated by OpenCVE AI on August 4, 2026 at 11:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 02 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Redhat build Of Keycloak
Redhat data Grid
Redhat jboss Enterprise Application Platform Expansion Pack
Redhat single Sign-on
Vendors & Products Redhat build Of Keycloak
Redhat data Grid
Redhat jboss Enterprise Application Platform Expansion Pack
Redhat single Sign-on

Sat, 01 Aug 2026 00:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sat, 01 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 31 Jul 2026 07:30:00 +0000

Type Values Removed Values Added
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.
Title Keycloak-services: keycloak-services: google external access-token exchange bypasses hosted-domain restriction
First Time appeared Redhat
Redhat build Keycloak
Redhat jboss Data Grid
Redhat jbosseapxp
Redhat red Hat Single Sign On
Weaknesses CWE-862
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:jboss_data_grid:8
cpe:/a:redhat:jbosseapxp
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat jboss Data Grid
Redhat jbosseapxp
Redhat red Hat Single Sign On
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Redhat Build Keycloak Build Of Keycloak Data Grid Jboss Data Grid Jboss Enterprise Application Platform Expansion Pack Jbosseapxp Red Hat Single Sign On Single Sign-on
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-31T23:21:31.386Z

Reserved: 2026-07-29T08:40:32.702Z

Link: CVE-2026-18214

cve-icon Vulnrichment

Updated: 2026-07-31T23:21:26.048Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-31T08:16:27.753

Modified: 2026-08-07T18:19:27.350

Link: CVE-2026-18214

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-28T12:19:00Z

Links: CVE-2026-18214 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T11:30:07Z

Weaknesses