Intel

AIKIDO-2026-99939

keycloak-services is vulnerable to Privilege Escalation

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

71

CVE Score

High

Privilege Escalation

Are you affected? Scan for Free

TL;DR

A flaw was found in the protocol mapper and identity resolution components of Keycloak. The issue occurs when a client manager uses hardcoded-claim mappers to override identity claims in sessionless service-account tokens. Because these tokens lack a session ID, Keycloak may incorrectly resolve the token bearer as a different, highly privileged user based on the manipulated claims. This can allow an attacker with limited client management permissions to impersonate a realm administrator and gain full control over the realm.

How do I fix this?

Upgrade org.keycloak:keycloak-services to the patched version. The fix restricts protocol-mapper changes to realm administrators by default and enforces a realm-controlled allowlist for delegated client administrators.

Who does this affect?

You are affected if you use a vulnerable version of org.keycloak:keycloak-services and a delegated client manager can configure hardcoded claim mappers on a service-account client issuing sessionless tokens.

Versions

1.2.0.Final - 26.4.16

Fixed in 26.4.17

26.5.0 - 26.6.7

Fixed in 26.6.8

26.7.0 - 26.8.1

Fixed in 26.8.2

Background info

keycloak-services is vulnerable to Privilege Escalation in versions 1.2.0.Final - 26.4.16, 26.5.0 - 26.6.7 and 26.7.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