keycloak-services is vulnerable to Privilege Escalation
65
CVE Score
Medium
Privilege Escalation
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.
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.
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.
26.8.0 - 26.8.1
Fixed in 26.8.2keycloak-services is vulnerable to Privilege Escalation in versions 26.8.0 - 26.8.1.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.