Incorrect Privilege Assignment Affecting org.keycloak:keycloak-services package, versions [26.2.0,26.6.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.35% (28th 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 Learn

Learn about Incorrect Privilege Assignment vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGKEYCLOAK-17139457
  • published3 Jun 2026
  • disclosed28 May 2026
  • creditAndrej Tomci

Introduced: 28 May 2026

CVE-2026-9795  (opens in a new tab)
CWE-266  (opens in a new tab)

How to fix?

Upgrade org.keycloak:keycloak-services to version 26.6.3 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 Incorrect Privilege Assignment via improper enforcement of scope mapping in the Fine-Grained Admin Permissions (FGAPv2) feature due to ScopeMappedResource and ScopeMappedClientResource write endpoints missing a call to requireMapClientScope per role. An attacker can gain unauthorized access to privileged roles by injecting arbitrary realm roles into a client's scope, which are then projected into a user's authentication token upon login through the compromised client. This is only exploitable if Fine-Grained Admin Permissions (FGAPv2) are enabled and the attacker has fine-grained client management permissions, and a privileged user subsequently authenticates through the affected client.

CVSS Base Scores

version 4.0
version 3.1