GitHub Advisoryadvisory · Maven

GHSA-xhpr-465j-7p9q Keycloak phishing attack via email verification step in first login flow

MEDIUM Published 2025-07-30 Modified 2025-07-30 Official page ↗
Aliases
CVE-2025-7365
Ecosystem
Maven
Packages
org.keycloak:keycloak-services
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N
Weaknesses
CWE-346
Reviewed
2025-07-30

Affected packages

• Maven org.keycloak:keycloak-services: < 26.0.13 → fixed in 26.0.13 • Maven org.keycloak:keycloak-services: >= 26.2.0, < 26.2.6 → fixed in 26.2.6

Description

There is a flaw with the first login flow where, during a IdP login, an attacker with a registered account can initiate the process to merge accounts with an existing victim's account. The attacker will subsequently be prompted to "review profile" information, which allows the the attacker to modify their email address to that of a victim's account. This triggers a verification email sent to the victim's email address. If the victim clicks the verification link, the attacker can gain access to the victim's account. While not a zero-interaction attack, the attacker's email address is not directly present in the verification email content, making it a potential phishing opportunity. This issue has been fixed in versions 26.0.13, 26.2.6, and 26.3.0.

Related

Alias · CVE (1)

Weakness · CWE (1)

  • CWE-346 Origin Validation Error weakness

References