CVE-2025-7365 Keycloak: phishing attack via email verification step in first login flow

High 7.1 Published Updated

Attackers can hijack victim accounts by manipulating email verification links during identity provider account merging flows.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-7365?

CVE-2025-7365 is a high-severity vulnerability in Redhat Keycloak, published on 10 Jul 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A flaw was found in Keycloak. When an authenticated attacker attempts to merge accounts with another existing account during an identity provider (IdP) login, the attacker will subsequently be prompted to "review profile" information. This vulnerability allows the attacker to modify their email address to match that of a victim's account, triggering a verification email sent to the victim's email address. The attacker's email address is not present in the verification email content, making it a potential phishing opportunity. If the victim clicks the verification link, the attacker can gain access to the victim's account.

Weakness: CWE-346

Which versions are affected by CVE-2025-7365?

4 open source packages ship an affected version, including org.keycloak:keycloak-services. It affects 1 product.

PackageAffectedFixed in
org.keycloak:keycloak-services MavenAll versions26.0.13
org.keycloak:keycloak-services MavenAll versions26.0.13
org.keycloak:keycloak-services MavenFrom 26.2.026.2.6
org.keycloak:keycloak-services MavenFrom 26.2.026.2.6

Products include Redhat Keycloak.

How do I fix CVE-2025-7365?

Upgrade org.keycloak:keycloak-services to a fixed version for your release line: 26.0.13 or 26.2.6.

Is CVE-2025-7365 being exploited?

There is no known exploitation of CVE-2025-7365 in the wild and no public exploit code.

All Redhat Keycloak vulnerabilities

Sources

Also known as ECHO-26f2-acde-46cc, GHSA-xhpr-465j-7p9q, MINI-gj5q-8ph8-5w5q.

Is CVE-2025-7365 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free