Incorrect authorization in Keycloak - CVE-2026-97848
Published: November 19, 2026
Vulnerability details
The vulnerability allows a remote user to forge client-role claims and potentially access protected resources that rely on those claims.
The vulnerability exists due to incomplete sanitization of structured role claims in the protocol mapper pipeline when a mapper emits JSON objects that the role filter does not recognize. A remote user can cause unauthorized role claims to pass through the filter to present forged client roles to relying applications.
Access tokens can contain a duplicate resource_access claim. A forged resource_access claim can also appear in ID tokens, UserInfo responses, and introspection responses.