CVE-2026-97848: Red Hat Build Of Keycloak 26.4
Medium severity, CVSS 6.5. EPSS: 0.3% probability of exploitation activity in the next 30 days.
A flaw was found in the token sanitization logic of Keycloak, an open source identity and access management solution. The issue occurs when a protocol mapper is configured to emit structured claims using the JSON type. The security check designed to remove unauthorized role mappings only looks for standard Java maps and fails to recognize Jackson based JSON objects. This allows an attacker to inject forged client roles into security tokens, which could lead to unauthorized access to protected resources.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Red Hat Build Of Keycloak 26.4, before 26.4.17-2: fixed in 26.4.17-2
- Red Hat Build Of Keycloak 26.4, before 26.4-29: fixed in 26.4-29
- Red Hat Build Of Keycloak 26.4, before 26.4-30: fixed in 26.4-30
- Red Hat Build Of Keycloak 26.6, before 26.6.8-2: fixed in 26.6.8-2
- Red Hat Build Of Keycloak 26.6, before 26.6-24: fixed in 26.6-24
Affected products
- Red Hat Red Hat Build Of Keycloak 26.4: before 26.4.17-2 (fixed in 26.4.17-2); before 26.4-29 (fixed in 26.4-29); before 26.4-30 (fixed in 26.4-30)
- Red Hat Red Hat Build Of Keycloak 26.4.17
- Red Hat Red Hat Build Of Keycloak 26.6: before 26.6.8-2 (fixed in 26.6.8-2); before 26.6-24 (fixed in 26.6-24)
- Red Hat Red Hat Build Of Keycloak 26.6.8
- Red Hat Red Hat Single Sign-On 7
Published 2026-11-06. Last modified 2026-11-06.