Improper Authorization in Keycloak Organization Mapper Allows Unauthorized Organization Claims
Moderate severity
GitHub Reviewed
Published
Mar 10, 2025
in
keycloak/keycloak
•
Updated Mar 10, 2025
Package
Affected versions
>= 26.1.0, < 26.1.3
< 26.0.10
Patched versions
26.1.3
26.0.10
Description
Published to the GitHub Advisory Database
Mar 10, 2025
Reviewed
Mar 10, 2025
Last updated
Mar 10, 2025
This vulnerability is caused by the improper mapping of users to organizations based solely on email/username patterns. The issue is limited to the token claim level, meaning the user is not truly added to the organization but may appear as such in applications relying on these claims. The risk increases in scenarios where self-registration is enabled and unrestricted, allowing an attacker to exploit the naming pattern. The issue is mitigated if admins restrict registration or use strict validation mechanisms.
References