Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.4 | — | — |
| Red Hat | Red Hat build of Keycloak 26.4.17 | — | — |
| Red Hat | Red Hat build of Keycloak 26.6 | — | — |
| Red Hat | Red Hat build of Keycloak 26.6.8 | — | — |
| Red Hat | Red Hat Single Sign-On 7 | — | — |
Advisories 1
- WID-SEC-2026-4375 Keycloak: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2026
References
- RHSA-2026:95759 vendor-advisory
- RHSA-2026:95760 vendor-advisory
- RHSA-2026:95761 vendor-advisory
- RHSA-2026:95762 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-97848 vdb-entry
- RHBZ#2540960 issue-tracking