Description
A flaw was found in Keycloak. An authenticated user with existing organization membership can exploit this flaw by accessing user-facing APIs, such as the account API or by requesting an OpenID Connect (OIDC) token with the 'organization' scope. This allows organization metadata to be disclosed in tokens, even after an administrator has explicitly disabled the Organizations feature, potentially leading to incorrect authorization decisions by resource servers.
Published: 2026-05-28
Score: 4.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in Keycloak allows an authenticated user who is a member of an organization to retrieve organization metadata through user-facing APIs such as the account API or by requesting an OIDC token with the 'organization' scope. This disclosure persists even after an administrator has disabled the Organizations feature, allowing organization data to appear in tokens and possibly causing resource servers to make incorrect authorization decisions. The weakness is a flaw in authorization enforcement (CWE-863).

Affected Systems

The vulnerability affects Red Hat Build of Keycloak. No specific product versions are identified in the advisory; administrators should verify whether their deployed instances fall under the affected build.

Risk and Exploitability

The CVSS score of 4.3 indicates a moderate risk. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector requires the attacker to be an authenticated user who already has organization membership; no remote code execution or privilege escalation is involved. The exploitation pathway involves normal API interactions or OIDC token requests, making the flaw relatively low in operational difficulty but potentially significant if organization data is sensitive. Administrators should assess the likelihood of such an authenticated user and the impact of leaked metadata on their environment.

Generated by OpenCVE AI on May 28, 2026 at 05:25 UTC.

Remediation

Vendor Workaround

Administrators should verify that disabling the Organizations feature properly blocks all organization-related functionality. Consider implementing additional access controls or removing organization memberships before disabling the feature.


OpenCVE Recommended Actions

  • Remove all organization memberships before disabling the Organizations feature in Keycloak
  • Verify that disabling the Organizations feature blocks all organization‑related functionality, including API responses and OIDC token claims
  • Implement additional access controls to restrict token exposure of organization metadata, such as limiting the 'organization' scope to trusted clients

Generated by OpenCVE AI on May 28, 2026 at 05:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 28 May 2026 04:45:00 +0000

Type Values Removed Values Added
Description A flaw was found in Keycloak. An authenticated user with existing organization membership can exploit this flaw by accessing user-facing APIs, such as the account API or by requesting an OpenID Connect (OIDC) token with the 'organization' scope. This allows organization metadata to be disclosed in tokens, even after an administrator has explicitly disabled the Organizations feature, potentially leading to incorrect authorization decisions by resource servers.
Title Keycloak-rhel9: organization data leak after feature disabled in keycloak
First Time appeared Redhat
Redhat build Keycloak
Weaknesses CWE-863
CPEs cpe:/a:redhat:build_keycloak:
Vendors & Products Redhat
Redhat build Keycloak
References
Metrics cvssV3_1

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


Subscriptions

Redhat Build Keycloak
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-05-28T03:44:12.464Z

Reserved: 2026-05-28T03:07:29.305Z

Link: CVE-2026-9791

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-05-28T05:16:39.977

Modified: 2026-05-28T05:16:39.977

Link: CVE-2026-9791

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T05:30:06Z

Weaknesses