Bug 2587765 (CVE-2026-140884) - CVE-2026-140884 keycloak-services: keycloak-services: second Review profile submission clears email edited marker
Summary: CVE-2026-140884 keycloak-services: keycloak-services: second Review profile s...
Keywords:
Status: NEW
Alias: CVE-2026-140884
Deadline: 2027-01-26
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-01 08:48 UTC by OSIDB Bzimport
Modified: 2026-12-01 08:55 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-12-01 08:48:57 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.