CVE-2026-18215

Keycloak-services: keycloak-services: microsoft external access-token exchange bypasses configured tenant

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 provides a way to let users log in using Microsoft accounts while restricting access to a specific organization (tenant). A flaw was discovered where this restriction is ignored when using the token exchange feature. This means an attacker with a valid Microsoft token from a completely different organization could gain access to the Keycloak realm, potentially accessing sensitive data or performing unauthorized actions.

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.