Insufficient Granularity of Access Control Affecting org.keycloak:keycloak-services package, versions [,26.8.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.43% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGKEYCLOAK-22989565
  • published26 Nov 2026
  • disclosed5 Nov 2026
  • creditUnknown

Introduced: 5 Nov 2026

NewCVE-2026-96547  (opens in a new tab)
CWE-1220  (opens in a new tab)
CWE-862  (opens in a new tab)

How to fix?

Upgrade org.keycloak:keycloak-services to version 26.8.2 or higher.

Overview

org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

Affected versions of this package are vulnerable to Insufficient Granularity of Access Control via the ProtocolMappersClientRegistrationPolicy component in Dynamic Client Registration. An attacker with valid registration credentials can register a client with a user-attribute mapper that maps a user-editable profile field to realm_access.roles; when a user subsequently authenticates through that client, the field appears as roles in the issued token, enabling privilege escalation at external applications that trust the claim.

Notes

  • Client creation step: DCR registration requires a valid Initial Access Token (IAT); the description’s “valid registration credentials” does not specify this credential.
  • Impact limit: the forged realm_access.roles claim affects external relying parties that use it for authorization; Keycloak’s internal authorization and Admin REST API evaluate the user’s role model directly and are not affected.

CVSS Base Scores

version 4.0
version 3.1