Keycloak Account Merge Vulnerability Leading to Phishing Opportunity

Vulnerability

A vulnerability exists in Keycloak's account merging process during identity provider (IdP) login. An authenticated attacker can merge their account with that of a victim, subsequently being prompted to 'review profile' information. This allows the attacker to change their email address to match the victim's, triggering a verification email to the victim. Since the verification email does not include the attacker's email, it creates a phishing opportunity. If the victim clicks the verification link, the attacker gains access to their account.

Impact

Exploitation of this vulnerability allows an attacker to gain unauthorized access to a victim's account.

Reproduction

To reproduce this vulnerability, an authenticated attacker must initiate the account merging process with a victim's account during an IdP login. After merging, the attacker can modify their email address to match that of the victim, which will send a verification email to the victim's inbox. If the victim clicks the verification link, the attacker will be granted access to the victim's account.

Added: Jul 10, 2025, 3:18 PM
Updated: Jul 10, 2025, 3:18 PM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
1.3
exploitability
5.5
remediation
0.0
relevance
0.2
threat
1.6
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.