CVE-2026-140884: Keycloak-services: keycloak-services: second review profile submission clears email edited marker

Published Dec 1, 2026
·
Updated

A flaw was found in the first broker login flow of Keycloak, an identity and access management solution. The issue occurs when a user submits the Review profile page multiple times, which causes the system to lose track of whether the email address was modified. This can allow an attacker to bypass security protections, leading to unauthorized account linking or the creation of verified accounts with unverified email addresses.

Other sources

A flaw was found in the Keycloak first broker login flow. When a user is prompted to review their profile because an account already exists, submitting the Review profile form a second time without changes causes Keycloak to clear the internal marker that tracks if the email or username was edited. This occurs because the state is not correctly preserved across multiple submissions of the updateProfile action. Exploitation requires the attacker to have an account at a configured identity provider. In one scenario, this allows an attacker to bypass the fix for CVE-2025-7365 and send a genuine account-linking email to a victim. If the victim clicks the link, the attacker gains full access to the victim account. In another scenario, if Trust Email is enabled, an attacker can create a new account with an arbitrary email address marked as verified without any actual verification occurring.

— Red Hat

Affected Software

1 affected component
Red Hat Keycloak

Event History

Dec 1, 2026
Data Sourced
via Red Hat·08:48 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·09:37 AM
Data Sourced
via MITRE·09:37 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What must an attacker have or do to exploit this issue?

The attacker needs an account at an identity provider configured for the Keycloak deployment. Exploitation also requires interacting with the first broker login flow and submitting the Review profile form multiple times; in the account-linking scenario, the victim must click a genuine account-linking email.

2

Is Trust Email relevant to the impact?

Yes. When Trust Email is enabled, the flaw can result in verified accounts being created with unverified email addresses. The provided information also describes a separate account-linking scenario that can give an attacker full access if the victim clicks the linking email.

3

How could an organization determine whether it may be exposed?

Review whether Keycloak uses the first broker login flow with configured identity providers, particularly where users can encounter the Review profile page because an account already exists. Also determine whether Trust Email is enabled and whether account-linking emails are used in this flow.

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