CVE Catalog

CVE-2026-97848

MediumCVSS 6.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.34%

27th percentile - higher than 27% of all known CVEs

Summary

A flaw was found in Keycloak's token sanitization logic. When a protocol mapper emits structured claims using the JSON type, the check removing unauthorized role mappings only recognizes standard Java maps and fails to detect Jackson-based JSON objects. This allows an attacker to inject forged client roles into security tokens.

Risk Assessment

An attacker could gain unauthorized access to protected resources by injecting forged roles into tokens. This may lead to privilege escalation in applications trusting Keycloak tokens.

Recommendation

Update Keycloak to a version containing the fix. Review protocol mapper configurations emitting structured JSON claims and restrict their use to necessary cases.

Other vulnerabilities in Keycloak

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS