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.
Published: 2026-11-06
Score: 4.2 Medium
EPSS: n/a
KEV: No
Impact: Unauthorized Access via Identity Rebinding
Action: Patch
AI Analysis

Impact

A flaw in Keycloak’s TokenManager validates stateless access tokens by falling back to the preferred_username when the original user ID no longer exists. This represents a CWE‑287 weakness—authentication bypass—that occurs because the username is accepted without verifying that it matches the token’s subject. An attacker who holds an old token can use it to gain access to a new service account that shares the same client ID as the previously deleted account, resulting in unauthorized access to resources protected by that account.

Affected Systems

The vulnerability affects Keycloak, the open‑source identity and access management platform. The issue exists in any version where the TokenManager component performs the described fallback. No specific version numbers are supplied by the CNA; it is reasonable to assume that all releases that include this component are potentially susceptible until a fixed version is released.

Risk and Exploitability

The CVSS score of 4.2 indicates a medium severity metric, and the EPSS score is not available. The vulnerability is not listed in CISA’s KEV catalog. The attack vector is inferred to be remote: an attacker must possess a valid old stateless access token that references a user ID that no longer exists. If that token is applied to a newly created service account with a matching client ID, the token will be accepted. The exploitation does not require privileged local access but does require the prior acquisition of a token that would normally be expired or orphaned. Although the defect is not currently exploited in the wild, the combination of token reuse and client ID re‑use creates a realistic risk of unauthorized service‑level access.

Generated by OpenCVE AI on November 6, 2026 at 02:20 UTC.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.


OpenCVE Recommended Actions

  • Apply the vendor‑supplied patch or upgrade Keycloak to a release that fixes the TokenManager identity rebinding flaw.
  • Revoke or delete all stale stateless access tokens that reference deleted user IDs to prevent their misuse.
  • Ensure that new service accounts are created with unique client IDs and avoid reusing identifiers from deleted accounts.

Generated by OpenCVE AI on November 6, 2026 at 02:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 06:15:00 +0000

Type Values Removed Values Added
Title keycloak-services: keycloak-services: Stateless token preferred_username fallback enables identity rebinding Keycloak-services: keycloak-services: stateless token preferred_username fallback enables identity rebinding
First Time appeared Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
References

Fri, 06 Nov 2026 00:15:00 +0000

Type Values Removed Values Added
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.
Title keycloak-services: keycloak-services: Stateless token preferred_username fallback enables identity rebinding
Weaknesses CWE-287
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N'}

threat_severity

Moderate


Subscriptions

Redhat Build Keycloak Red Hat Single Sign On
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-11-06T06:02:51.358Z

Reserved: 2026-09-23T09:37:33.249Z

Link: CVE-2026-96447

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-06T06:16:44.910

Modified: 2026-11-06T06:16:45.027

Link: CVE-2026-96447

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-11-05T00:00:00Z

Links: CVE-2026-96447 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T02:30:14Z

Weaknesses