CVE-2026-18214
Keycloak-services: keycloak-services: google external access-token exchange bypasses hosted-domain restriction
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.
INFO
Published Date :
July 31, 2026, 8:16 a.m.
Last Modified :
July 31, 2026, 8:16 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
Affected Products
The following products are affected by CVE-2026-18214
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | 53f830b8-0a3f-465b-8143-3b8a9948e749 | ||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | MITRE-CVE |
Solution
- Update Keycloak to the latest version.
- Re-evaluate Google Workspace domain configurations.
- Ensure token exchange respects domain restrictions.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-18214.
| URL | Resource |
|---|---|
| https://access.redhat.com/security/cve/CVE-2026-18214 | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2508308 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-18214 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-18214
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-18214 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-18214 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by [email protected]
Jul. 31, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:/a:redhat:build_keycloak:'], 'vendor': 'Red Hat', 'product': 'Red Hat Build of Keycloak', 'packageName': 'keycloak-services', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:'], 'vendor': 'Red Hat', 'product': 'Red Hat Build of Keycloak', 'packageName': 'rhbk-keycloak-rhel9/rhbk-keycloak-rhel9', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:build_keycloak:'], 'vendor': 'Red Hat', 'product': 'Red Hat Build of Keycloak', 'packageName': 'rhbk-openshift-rhel9/rhbk-openshift-rhel9', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/a:redhat:jboss_data_grid:8'], 'vendor': 'Red Hat', 'product': 'Red Hat Data Grid 8', 'packageName': 'keycloak-services', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:jbosseapxp'], 'vendor': 'Red Hat', 'product': 'Red Hat JBoss Enterprise Application Platform Expansion Pack', 'packageName': 'keycloak-services', 'collectionURL': 'https://access.redhat.com/jbossnetwork/restricted/listSoftware.html', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:red_hat_single_sign_on:7'], 'vendor': 'Red Hat', 'product': 'Red Hat Single Sign-On 7', 'packageName': 'keycloak-services', 'collectionURL': 'https://access.redhat.com/downloads/content/package-browser/', 'defaultStatus': 'unaffected'}] 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. Added CVSS V3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N Added CWE CWE-862 Added Reference https://access.redhat.com/security/cve/CVE-2026-18214 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2508308