CVE-2026-97848

Medium

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.

SeverityMedium
CVSS6.5
Exploit probability30. percentile0.4%
ProductRed Hat Build of Keycloak
PublishedNov 6, 2026
First seenNov 6, 2026

How to fix

Affected products

ProductAffected versionsFixed in
Red Hat Red Hat Build of KeycloakNo range specified—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.