Keycloak-services: keycloak-services: stateless token preferred_username fallback enables identity rebinding
- State
- Published
- Severity
- 4.2 Medium
- Published
- Nov 6, 2026
- Updated
- Nov 19, 2026
- Reserved
- Sep 23, 2026
Description
A flaw was found in the TokenManager component of Keycloak, an open-source identity and access management solution. The issue occurs during the validation of stateless access tokens when the original user ID no longer exists. Keycloak incorrectly falls back to using the username to identify the user without verifying if the identity matches the original token subject. This could allow an attacker with an old token to gain access to a newly created service account if it shares the same client ID as a previously deleted one.
| Product | Versions |
|---|---|
| Red Hat build of Keycloak 26.6 Red Hat | 26.6.8-2 and later Not Affected |
| Red Hat build of Keycloak 26.6 Red Hat | 26.6-24 and later Not Affected |
| Red Hat build of Keycloak 26.6 Red Hat | 26.6-24 and later Not Affected |
| Red Hat build of Keycloak 26.6.8 Red Hat | |
| Red Hat build of Keycloak 26.6.8 Red Hat | |
| Red Hat Single Sign-On 7 Red Hat |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 4.2 Medium | redhat |
Weaknesses
- CWE-287 Improper Authentication
References
- RHSA-2026:95761Vendor Advisory
- RHSA-2026:95762Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-96447Vulnerability Database
- RHBZ#2539288Issue Tracker
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.