CVE-2026-97848
Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization
- Severity
- medium CVSS 6.5 (v3.1)
- Affects
- Red Hat build of Keycloak 26.4 · Red Hat
- Weakness
- CWE-20: Improper Input Validation
- Published
- 6 November 2026 by redhat
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.