Google external access-token exchange bypasses hosted-domain restriction token-exchange

VV:CVE-2026-18214
MEDIUM 6.8VigieVulnAI-assisted

At a glance

Source
VigieVuln
CVE
CVE-2026-18214
CVE severity
MEDIUM 6.8 from the CVE record
EPSS
0.22 % ·
ENISA EUVD
EUVD-2026-51485
Published
Assigner
redhat
Affected products
Red Hat · Red Hat build of Keycloak 26.6
Red Hat · Red Hat build of Keycloak 26.6.7
Red Hat · Red Hat Data Grid 8
Red Hat · Red Hat JBoss Enterprise Application Platform Expansion Pack
Red Hat · Red Hat Single Sign-On 7
Review
Reviewed by a human.
Confidence reported during research
not provided
Updated

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.

Reconciliation

Reconciled with AI assistance. Reviewed by a human.

The publisher release notes identify the correction in 26.7.3. The relevant production code before the patch was checked at each listed affected tag, and the corresponding patch was checked at 26.7.3. The exact tags only are assessed; other releases and exploitability conditions remain unassessed and require human review.

Only the listed ranges and versions were verified; other versions remain undetermined.

Information added or clarified: Maven · org.keycloak:keycloak-services — verified versions : 26.7.0, 26.7.1, 26.7.2 ; not affected : 26.7.3.

Original sources

New evidence

Affected packages

PackageVersions
Maven · org.keycloak:keycloak-services26.7.0, 26.7.1, 26.7.2
Not affected : 26.7.3

Original CVE information

Information from the CVE record and, where indicated, NVD. View the full CVE record

Affected products

ProductAffected versions
Red Hat · Red Hat build of Keycloak 26.6
rhbk/keycloak-operator-bundle
unaffected : ≥ 26.6.7-3 < *
Other versions : affected
Red Hat · Red Hat build of Keycloak 26.6
rhbk/keycloak-rhel9
unaffected : ≥ 26.6-20 < *
Other versions : affected
Red Hat · Red Hat build of Keycloak 26.6
rhbk/keycloak-rhel9-operator
unaffected : ≥ 26.6-20 < *
Other versions : affected
Red Hat · Red Hat build of Keycloak 26.6.7
keycloak-services
Other versions : unaffected
Red Hat · Red Hat build of Keycloak 26.6.7
rhbk-keycloak-rhel9/rhbk-keycloak-rhel9
Other versions : unaffected
Red Hat · Red Hat build of Keycloak 26.6.7
rhbk-openshift-rhel9/rhbk-openshift-rhel9
Other versions : unaffected
Red Hat · Red Hat Data Grid 8
keycloak-services
Other versions : unaffected
Red Hat · Red Hat JBoss Enterprise Application Platform Expansion Pack
keycloak-services
Other versions : unaffected
Red Hat · Red Hat Single Sign-On 7
keycloak-services
Other versions : unaffected

Weaknesses (CWE)

Credits

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Nredhat
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:NNVD · secalert@redhat.com (Secondary)
CVSS 3.1HIGH 8.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NNVD · nvd@nist.gov (Primary)

References

Sources

SourceLicence
CVE Project
VigieVuln
NVD (NIST)Public domain