Authentication Bypass by Assumed-Immutable Data Affecting org.keycloak:keycloak-services package, versions [,26.8.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.42% (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-22989353
  • published26 Nov 2026
  • disclosed5 Nov 2026
  • creditUnknown

Introduced: 5 Nov 2026

NewCVE-2026-97847  (opens in a new tab)
CWE-287  (opens in a new tab)
CWE-302  (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 Authentication Bypass by Assumed-Immutable Data via the protocol-mapper authorization and sessionless service-account identity-resolution flow in the Admin REST API. An attacker with permission to manage an OIDC client and knowledge of a realm administrator’s username can add hardcoded-claim mappers that override the client’s service-account token’s sub and preferred_username; when the token has no session ID and its sub cannot be resolved, Keycloak falls back to preferred_username and treats the bearer as that administrator. The attacker gains realm administrator authority, allowing them to read, modify, or delete realm data.

Notes

  • Identity-resolution step: the attacker must know a realm administrator’s username or UUID to make Keycloak resolve the manipulated sessionless token as that administrator.

CVSS Base Scores

version 4.0
version 3.1