Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization
- CVE-2026-97848
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.
Text from the CVE.org record.
Affected
Red Hat Red Hat build of Keycloak 26.4
- from 26.4.17-2 onwards: not affected
- from 26.4-29 onwards: not affected
- from 26.4-30 onwards: not affected
Red Hat Red Hat build of Keycloak 26.4.17
- No versions listed
Red Hat Red Hat build of Keycloak 26.6
- from 26.6.8-2 onwards: not affected
- from 26.6-24 onwards: not affected
Red Hat Red Hat build of Keycloak 26.6.8
- No versions listed
Red Hat Red Hat Single Sign-On 7
- No versions listed
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.