REDHAT-BUG-2514529: Medium severity maven/org.keycloak/keycloak-services vulnerability

Published Aug 12, 2026
·
Updated

A flaw was found in the Keycloak first-broker-login flow within the keycloak-services Maven artifact. The vulnerability exists because the flow does not sufficiently validate or prevent a brokered identity from colliding with an existing local user's username when loginWithEmail is enabled and usernames are email-shaped. An unauthenticated remote attacker can register an account on a configured external Identity Provider using an email address that matches a victim's Keycloak username. By performing a broker login with this account, the attacker creates a username collision state. This state causes all subsequent authentication attempts by the legitimate victim to fail, effectively locking them out of their account.

Affected Software

1 affected component
maven/org.keycloak/keycloak-services

Event History

Aug 12, 2026
Data Sourced
via Red Hat·08:42 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using the Keycloak first-broker-login flow with a configured external Identity Provider are affected when loginWithEmail is enabled and local usernames are email-shaped.

2

What does an attacker need to do to trigger the lockout?

An unauthenticated remote attacker needs to register an account with the external Identity Provider using an email address that matches a victim's Keycloak username, then complete a broker login with that account.

3

What is the practical impact on the targeted user?

The broker login creates a username-collision state that causes subsequent authentication attempts by the legitimate user to fail, locking that user out of their account.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203