Authorization Bypass Through User-Controlled Key Affecting org.keycloak:keycloak-services package, versions [,26.6.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (32nd 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 Authorization Bypass Through User-Controlled Key vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGKEYCLOAK-16873800
  • published24 May 2026
  • disclosed19 May 2026
  • creditUnknown

Introduced: 19 May 2026

CVE-2026-37978  (opens in a new tab)
CWE-639  (opens in a new tab)

How to fix?

Upgrade org.keycloak:keycloak-services to version 26.6.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 Authorization Bypass Through User-Controlled Key via the generateAccessToken path in ClientScopeEvaluateResource.java. An attacker can generate client scope tokens for a user by supplying that user’s ID to client scope evaluation without having permission to view the user. The vulnerable flow resolves the target user and proceeds to generate a token without enforcing a user access check, allowing callers with client-scope evaluation access to act on users they are not authorized to inspect. This exposes user-related token data, allowing unauthorized administrators or users with low administrative privileges to evaluate scopes against arbitrary users.

Note: While the fix was back-ported to version 26.4.12, this version has not been published to Maven Central.

CVSS Base Scores

version 4.0
version 3.1