Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization
cve-program · CVE-2026-97848
PublishedA 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-97848 · CVE overview and exploitation status
cve-program · CVE-2026-97848
Related changes
Linked by CVE identifier- Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization · Newly collected advisory · 6 Nov 2026
- Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization · Affected-version evidence changed · 6 Nov 2026
- Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization · Affected-version evidence changed · 6 Nov 2026