CVE-2025-7365 Keycloak: phishing attack via email verification step in first login flow
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.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-services Maven | All versions | 26.0.13 |
org.keycloak:keycloak-services Maven | All versions | 26.0.13 |
org.keycloak:keycloak-services Maven | From 26.2.0 | 26.2.6 |
org.keycloak:keycloak-services Maven | From 26.2.0 | 26.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.
Other vulnerabilities in Redhat Keycloak
- CVE-2022-4361 Keycloak vulnerable to cross-site scripting when validating URI-schemes on SAML and OIDC
- CVE-2022-1245 Keycloak vulnerable to privilege escalation on Token Exchange feature
- CVE-2021-20195 keycloak Self Stored Cross-site Scripting vulnerability
- CVE-2019-14910 Keycloak Authentication Error
- CVE-2019-14909 Keycloak Authentication Error
Sources
Also known as ECHO-26f2-acde-46cc, GHSA-xhpr-465j-7p9q, MINI-gj5q-8ph8-5w5q.