Intel

AIKIDO-2026-612610

keycloak-services is vulnerable to Privilege Escalation

Privilege EscalationCVE-2026-4629 Published Aug 12, 2026

65

Medium Risk

This Affects:

JAVAkeycloak-services
1.0.0 - 26.7.0
Fixed in 26.7.1
Are you affected? Scan for Free

TL;DR

A user who can create or edit a client's protocol mappers can inject a hardcoded-role mapper that writes admin roles into tokens issued for that client. Admin authorization then trusts those token role claims instead of the user's actual grants, so the attacker can self-escalate to realm-admin by authenticating through the client they manage. The fix stops treating mapper-injected role claims as authoritative for admin authorization decisions.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and any user can create or edit client protocol mappers (for example via manage-clients) on a client they can also authenticate as.

Background info

keycloak-services is vulnerable to Privilege Escalation in versions 1.0.0 - 26.7.0.

How to fix this

Upgrade the org.keycloak:keycloak-services library to the patch version.