CVE-2026-1035: Org.keycloak.protocol.oidc: keycloak refresh token reuse bypass via toctou race condition

Published Jan 16, 2026
·
Updated

A flaw was found in the Keycloak server during refresh token processing, specifically in the TokenManager class responsible for enforcing refresh token reuse policies. When strict refresh token rotation is enabled, the validation and update of refresh token usage are not performed atomically. This allows concurrent refresh requests to bypass single-use enforcement and issue multiple access tokens from the same refresh token. As a result, Keycloak’s refresh token rotation hardening can be undermined.

Other sources

A race condition (Time-of-Check to Time-of-Use) exists in the TokenManager class, specifically within the validateTokenReuse method. This vulnerability allows an attacker to bypass the refreshTokenMaxReuse security policy when it is set to zero (strict single-use). By sending concurrent requests, a single refresh token can be exchanged for multiple valid access tokens before the usage counter is updated, undermining the Refresh Token Rotation hardening measure.

Red Hat

Affected Software

2 affected components
Red Hat Keycloak
maven/org.keycloak:keycloak-services<=26.2.5

Event History

Jan 16, 2026
Data Sourced
via Red Hat·07:15 AM
DescriptionSeverityAffected Software
Jan 21, 2026
CVE Published
via MITRE·05:52 AM
Data Sourced
via MITRE·05:52 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:31 AM
Data Sourced
via GitHub·06:31 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-1035?

CVE-2026-1035 is classified as a medium severity vulnerability.

2

How do I fix CVE-2026-1035?

To fix CVE-2026-1035, upgrade to Keycloak version 26.2.6 or later which addresses the refresh token reuse issue.

3

What specific component is affected by CVE-2026-1035?

CVE-2026-1035 affects the TokenManager class in the Keycloak server's refresh token processing.

4

What type of vulnerability is CVE-2026-1035?

CVE-2026-1035 is a toctou race condition vulnerability that impacts refresh token policies.

5

Are all Keycloak versions vulnerable to CVE-2026-1035?

CVE-2026-1035 affects Keycloak server versions up to and including 26.2.5.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203