Summary An authorization bypass exists in the Keycloak Admin API where the endpoint /admin/realms/ {realm}/organizations/members/{member-id}/organizations fails to perform necessary permission checks. This allows any authenticated user, regardless of their roles or administrative privileges, to enumerate the organization memberships of any other user if their unique identifier (UUID) is known. Requirements to exploit * The Organizations feature must be enabled (which is the default in recent versions). * The attacker must possess a valid access token for the realm. * The attacker must know the UUID of the victim user. Component affected org.keycloak.services.resources.admin.organizations Version affected: 26.5.1 Patch available: No CVSS: 3.1 (Low) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N Embargo: No Acknowledgement: Reynaldo Immanuel, Joy Gilbert Steps to reproduce # Enable the Organizations feature and create multiple organizations (e.g., orgA, orgB). # Create a victim user and assign them to several organizations # Create a low-privileged "attacker" user with no administrative roles. # Obtain an OIDC access token for the low-privileged user. # Execute a GET request to /admin/realms/{realm} /organizations/members/ {victim-id} /organizations using the low-privileged token. Observe that the server returns a 200 OK response containing a full list of the victim's organization memberships instead of the expected 403 Forbidden.