Time-of-check Time-of-use (TOCTOU) Race Condition Affecting org.keycloak:keycloak-services package, versions [,26.4.11)[26.5.0,26.5.6)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd 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 Time-of-check Time-of-use (TOCTOU) Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGKEYCLOAK-15046652
  • published21 Jan 2026
  • disclosed21 Jan 2026
  • creditMohamed Amine ait Ouchebou (mrecho)

Introduced: 21 Jan 2026

CVE-2026-1035  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade org.keycloak:keycloak-services to version 26.4.11, 26.5.6 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 Time-of-check Time-of-use (TOCTOU) Race Condition via the validateTokenReuse method in the TokenManager class. An attacker can obtain multiple access tokens from a single refresh token by making concurrent refresh requests.

CVSS Base Scores

version 4.0
version 3.1