Keycloak: Authorization bypass via hardcoded-claim mapper manipulation (CVE-2026-97847)
A vulnerability in Keycloak’s protocol mapper and identity resolution components allows an attacker with limited client management permissions to escalate privileges to realm administrator by manipulating identity claims in sessionless service-account tokens.
CVE search metadata
CVE search record: CVE-2026-97847. Severity: high. CVSS: 7.1. KEV: no. Product: Keycloak. Brief: Keycloak: Authorization bypass via hardcoded-claim mapper manipulation (CVE-2026-97847). Brief link: https://feed.craftedsignal.io/briefs/2026-11-keycloak-identity-resolution-bypass/
Triage facts
Revision 1- Applicability
- Keycloak
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 6, 00:35 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
A security flaw exists in Keycloak concerning its protocol mapper and identity resolution logic. An attacker who possesses limited client management permissions can configure hardcoded-claim mappers to override identity claims within sessionless service-account tokens. Because these tokens do not contain a session ID, Keycloak fails to validate the claim integrity against an active session, leading to the misidentification of the token bearer as a highly privileged user, such as a realm administrator. This allows the attacker to obtain full control over the target realm.
Impact
Successful exploitation allows a low-privileged user with client management rights to escalate privileges to a realm administrator. This grants the attacker full control over the impacted realm, including user management, configuration changes, and access to all protected resources within that realm.
Recommendation
- Inventory all Keycloak instances within the environment.
- Review current client configurations, specifically looking for anomalous usage of hardcoded-claim mappers within service-account token requests.
- Apply security patches for CVE-2026-97847 as soon as they are made available by Red Hat.
- Audit administrative role assignments and service account permissions to ensure the principle of least privilege is maintained for client managers.
Immediate actions
Identify Keycloak instances and audit client configurations for hardcoded-claim mappers
Threat Hunt
Hunt for unusual administrative changes or unauthorized role modifications originating from service accounts
Data: Keycloak audit logs, Identity provider administrative action logs
Mitigations
Apply security patches for CVE-2026-97847
CVE-2026-97847