Improper Enforcement of Behavioral Workflow Affecting org.keycloak:keycloak-services package, versions [,26.5.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (3rd 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 Improper Enforcement of Behavioral Workflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGKEYCLOAK-15046694
  • published21 Jan 2026
  • disclosed21 Jan 2026
  • creditAytac Kalinci

Introduced: 21 Jan 2026

CVE-2025-14559  (opens in a new tab)
CWE-841  (opens in a new tab)

How to fix?

Upgrade org.keycloak:keycloak-services to version 26.5.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 Improper Enforcement of Behavioral Workflow via the Token Exchange implementation. An attacker can obtain access and refresh tokens for users who have been disabled by invoking the token exchange flow with a privileged client, potentially resulting in unauthorized access to previously revoked privileges.

Workaround

This vulnerability can be mitigated by disabling the Token Exchange preview feature if it is not actively required, or by ensuring that only strictly necessary and highly trusted clients are granted the 'impersonation' permission.

CVSS Base Scores

version 4.0
version 3.1