CVE-2026-97848

published 6 Nov 2026 · updated 9 Nov 2026

Keycloak-services: keycloak-services: protocol mapper with jsontype=json bypasses token sanitization

6.5MediumCVSS 6.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatBuild of Keycloak
Red HatSingle Sign-On

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-97848 severity on Zeptric[![CVE-2026-97848](https://zeptric.io/badge/cve/CVE-2026-97848.svg)](https://zeptric.io/cve/CVE-2026-97848)