Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify target realm and idpAlias
-
DeliveryRegister second upstream IdP account
-
ExploitPhish victim into linking flow
-
ExecutionSubmit replayed cross-session proof
-
PersistBind attacker upstream identity to victim account
-
ImpactAuthenticate as victim via attacker IdP account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Exploitation requires (1) Keycloak's account-linking flow to be reachable for the targeted realm and IdP - i.e., a configured idpAlias that supports user-initiated or admin-initiated linking; (2) the attacker to control a second, distinct upstream account on the same IdP (idpAlias) used by the victim - feasible for public/social IdPs, much harder for closed enterprise IdPs; (3) victim user interaction (CVSS UI:R) to complete the upstream verification step under attacker direction (e.g., clicking a crafted linking URL while authenticated to the upstream IdP); and (4) the attacker to know or guess the victim's local userId and the target idpAlias. No Keycloak credentials are needed on the attacker side (CVSS PR:N), and the network attack vector means the flow is exercised over normal HTTPS. Limiting factors: realms that disable account linking, IdPs where obtaining a second account is non-trivial, and the requirement for victim interaction within the linking flow all materially reduce realistic exploitability. |
| Impact | Signals diverge: CVSS 3.1 is 8.1 with AV:N/AC:L/PR:N/UI:R (high confidentiality and integrity, no availability impact), and CISA SSVC rates Technical Impact as total, which would normally argue for prioritization. However, EPSS is only 0.03% (8th percentile), SSVC Exploitation is 'none', Automatable is 'no', and no public exploit identified at time of analysis - consistent with a flaw that is impactful when exploited but requires a targeted setup (controlling a second upstream account on the same IdP and inducing victim interaction in the linking flow). The PR:N rating reflects that the attacker side of the flow does not require Keycloak credentials, but the attacker must control an upstream IdP account, which is an implicit prerequisite not captured by CVSS - so the real exploitability bar is higher than PR:N alone suggests. Net assessment: real but not urgent across the fleet; prioritize patching for Keycloak deployments that broker public or self-service IdPs (e.g., social login, large enterprise federations) where obtaining a second upstream account is trivial. |
| Exploit ScenarioDerived | An attacker registers or already controls a second account on an IdP that the target Keycloak realm brokers (for example, a public OIDC or social provider). The attacker initiates an account-linking flow tied to the victim's local Keycloak userId and idpAlias, then induces the victim - via a phishing link satisfying CVSS UI:R - to complete the upstream verification step; because the cross-session proof is not bound to the upstream subject, the attacker's separate upstream account is accepted as the linked identity. The attacker can subsequently log in to the victim's local Keycloak account via the attacker-controlled upstream account, achieving account takeover; no public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 10, 2026
Identity linking bypass in Red Hat build of Keycloak allows an attacker controlling a second account on the same upstream Identity Provider to hijack a victim's local account through the cross-session account-linking flow. The cross-session verification proof is keyed only by the tuple of local userId and idpAlias without binding to the specific upstream identity that was actually verified, so the proof can be replayed against a different upstream account on the same IdP. EPSS is currently 0.03% (8th percentile) and no public exploit identified at time of analysis, but technical impact is rated total by CISA SSVC.
Earlier versions of this analysis (2)
Account takeover via identity provider linking in Red Hat build of Keycloak allows a remote attacker controlling a second account on the same upstream IdP to hijack the link to a victim's local Keycloak account. The cross-session verification proof is keyed only by local userId and idpAlias rather than being bound to the specific upstream identity, enabling identity-provider account linking abuse. No public exploit identified at time of analysis, and EPSS exploitation probability is very low (0.03%).
Account takeover via IdP linking proof reuse in Red Hat Build of Keycloak allows an authenticated attacker with an account on the same external Identity Provider to hijack another user's local Keycloak account. The cross-session verification proof generated during the IdP account linking flow is scoped only to the tuple (local userId, idpAlias) and is not cryptographically bound to the specific upstream identity that completed verification, enabling a second IdP account - controlled by the attacker - to consume that proof and become linked to the victim's local account. No public exploit has been identified at time of analysis and the flaw is not listed in the CISA KEV catalog, though the high Confidentiality and Integrity impact (CVSS C:H/I:H) reflects the severity of a successful account takeover.
RemediationAI
Patch available per vendor advisory: apply the Red Hat errata RHSA-2026:25097 (https://access.redhat.com/errata/RHSA-2026:25097) and RHSA-2026:25098 (https://access.redhat.com/errata/RHSA-2026:25098) for the Red Hat build of Keycloak, using the exact fixed package versions listed in those advisories (not independently confirmed from the provided input). Until patching is complete, reduce exposure by disabling self-service account linking in affected realms (Realm Settings → user-profile / account-linking) so that linking must be initiated through an administrative flow - note this breaks end-user self-service for federated identities. Where account linking must remain enabled, restrict the set of brokered IdPs to those where attacker-controlled second accounts are hard to obtain (e.g., internal enterprise IdPs only, not public social providers); audit existing federated identity links via the Keycloak admin API or database to detect already-linked unexpected upstream subjects per local user, and review session/audit logs for IDENTITY_PROVIDER_LINK_ACCOUNT events around the disclosure window. The Red Hat security page at https://access.redhat.com/security/cve/CVE-2026-9087 should be treated as the authoritative remediation reference.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Keycloak is Red Hat's open-source identity and access management server providing federation, SSO, and social login via upstream Identity Providers (IdPs) such as SAML and OIDC brokers. When a user links a local Keycloak account to an external IdP account, Keycloak generates a cross-session verification proof to confirm the linkage across the two browser sessions involved in the flow. The root cause maps to CWE-639 (Authorization Bypass Through User-Controlled Key): the proof's key is constructed from only the local userId and the idpAlias (the IdP configuration name), rather than also binding the specific upstream subject identifier that was just verified. Because the upstream identity is not part of the key, any account on the same configured IdP satisfies the proof's authorization check, breaking the integrity of the linking step. Affected product per CPE is cpe:2.3:a:red_hat:red_hat_build_of_keycloak.
Know when Red Hat Build Of Keycloak gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Network-reachable linking flow with no Keycloak credentials needed (PR:N) but requiring victim interaction (UI:R) and control of a separate upstream IdP account plus knowledge of the target userId/idpAlias (AC:H); full account takeover yields C:H/I:H, no availability impact.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
A flaw was found in Keycloak. The cross-session verification proof is keyed only by (local userId, idpAlias) and is not bound to the upstream identity that was actually verified, so a second upstream account on the same IdP can consume it and get linked to the victim's local account.
Blast Radius
ecosystem impact- 70 maven packages depend on org.keycloak:keycloak-services (36 direct, 34 indirect)
Ecosystem-wide dependent count for version 26.6.3.
Executive ViewAI
Red Hat Keycloak identity linking bypass (CVE-2026-9087, CVSS 8.1) enables account hijacking through the cross-session account-linking flow by replaying verification proofs between different upstream identities on the same identity provider. Successful exploitation results in complete compromise of victim accounts and downstream system access reliant on Keycloak authentication.
No vendor-released patch identified at time of analysis. Interim mitigations: disable cross-session account linking if operationally feasible; enforce MFA for all account linking operations; implement real-time alerting on account linking activities; audit all existing account links for suspicious cross-session bindings; restrict upstream identity provider access to authorized accounts only.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)NVD
More in Red Hat Build Of Keycloak
View allAccount takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in
Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML
Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge
Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil
Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat
Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con
URI normalization bypass in Keycloak's Authorization Services PathMatcher allows authenticated low-privilege users to re
Privilege escalation in Keycloak's Dynamic Client Registration (DCR) component allows attackers with standard user accou
Token exchange in Keycloak bypasses Google Workspace domain allowlist restrictions, enabling any valid Google account ho
Signature-verification bypass in Keycloak (and Red Hat's Keycloak-based products such as Red Hat Single Sign-On 7 and Re
Tenant-restriction bypass in Keycloak's Microsoft identity provider integration allows attackers holding any valid Micro
Session hijacking via SAML assertion replay in Keycloak's SAML broker component allows adjacent-network attackers to aut
EUVD-2026-31134
GHSA-m6qj-3mpp-57v8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB