Keycloak allows Incorrect Assignment of an Organization to a User
Moderate severity
GitHub Reviewed
Published
Feb 17, 2025
to the GitHub Advisory Database
•
Updated Feb 20, 2025
Description
Published by the National Vulnerability Database
Feb 17, 2025
Published to the GitHub Advisory Database
Feb 17, 2025
Reviewed
Feb 20, 2025
Last updated
Feb 20, 2025
A flaw was found in the Keycloak organization feature, which allows the incorrect assignment of an organization to a user if their username or email matches the organization’s domain pattern. This issue occurs at the mapper level, leading to misrepresentation in tokens. If an application relies on these claims for authorization, it may incorrectly assume a user belongs to an organization they are not a member of, potentially granting unauthorized access or privileges.
References