keycloak-services is vulnerable to Privilege Escalation
65
Medium Risk
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.
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.
keycloak-services is vulnerable to Privilege Escalation in versions 1.0.0 - 26.7.0.
Upgrade the org.keycloak:keycloak-services library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant