Intel

AIKIDO-2026-846344

keycloak-services is vulnerable to Privilege Escalation

CVE-2026-97848Published 4 days ago
November 16, 2026

65

CVE Score

Medium

Privilege Escalation

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade org.keycloak:keycloak-services to the patched version. The fix restricts mapper changes to realm administrators by default, preventing untrusted clients from installing the role-forging mapper.

Who does this affect?

You are affected if you use a vulnerable version of org.keycloak:keycloak-services and an attacker can configure a protocol mapper to emit structured role claims with JSON type.

Versions

26.8.0 - 26.8.1

Fixed in 26.8.2

Background info

keycloak-services is vulnerable to Privilege Escalation in versions 26.8.0 - 26.8.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea