Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization
cve-program · CVE-2026-97848 · Published
No access to your tenant or devices. Every item links to its source. What this means
Historical advisory recorded 10 Nov 2026 00:02:10 UTC. Read the latest advisory.
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.
Read the publisher's advisorySee how the publisher's advisory changed over time. Each link opens the version saved at that time. The publisher's update date can differ from the date shown here.
Each link identifies one complete publisher record. History can include advisories that previously shared an identifier; an identifier removed by a publisher no longer establishes a current relationship. A historical link shows only that record and earlier saved versions. Failed checks and unchanged reads do not create new versions.
cve-program · CVE-2026-97848 · Published
cve-program · CVE-2026-97848 · Published
cve-program · CVE-2026-97848 · Published
cve-program · CVE-2026-97848 · Published
This historical link shows only this version and versions saved before it. Browse all advisory history.