CVE-2025-7365
Keycloak: phishing attack via email verification step in first login flow
Also known as GHSA-xhpr-465j-7p9q
Mitigation
- Upgrade org.keycloak:keycloak-services to one of 26.0.13, 26.2.6 (or later in the same release line).
- Vendor workaround: Disable account review in the Identity Provider to prevent users from potentially modifying identity information. Disable the email verification step and use only re-authentication step.
Who should check
- Projects that depend on Maven package org.keycloak:keycloak-services (< 26.0.13)
- Anyone running keycloak < 26.0.13; >= 26.2.0, < 26.2.6
- Anyone running Red Hat build of Keycloak 26 (versions: see the vendor advisory)
- Anyone running Red Hat build of Keycloak 26.0 all versions
- Anyone running Red Hat build of Keycloak 26.2 all versions
Vulnerability facts
- Affected
- org.keycloak:keycloak-services < 26.0.13
- Fixed in
- 26.0.13, 26.2.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.37% chance of exploitation in 30 days (percentile 23, 2026-11-26)
- CWE
- CWE-346
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.keycloak:keycloak-services | < 26.0.13 | 26.0.13, 26.2.6 | osv |
| keycloak | < 26.0.13; >= 26.2.0, < 26.2.6 | — | cvelist |
| Red Hat build of Keycloak 26 | — | — | cvelist |
| Red Hat build of Keycloak 26 | — | — | cvelist |
| Red Hat build of Keycloak 26.0 | all versions | — | cvelist |
| Red Hat build of Keycloak 26.0 | all versions | — | cvelist |
| Red Hat build of Keycloak 26.0 | all versions | — | cvelist |
| Red Hat build of Keycloak 26.2 | all versions | — | cvelist |
| Red Hat build of Keycloak 26.2 | all versions | — | cvelist |
| Red Hat build of Keycloak 26.2 | all versions | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-7365. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-7365.md Affected: org.keycloak:keycloak-services < 26.0.13 Fixed in: 26.0.13, 26.2.6 Steps: 1. Search this machine and project for org.keycloak:keycloak-services (Maven), keycloak, Red Hat build of Keycloak 26, Red Hat build of Keycloak 26.0, Red Hat build of Keycloak 26.2: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://access.redhat.com/errata/RHSA-2025:11986
- https://access.redhat.com/errata/RHSA-2025:11987
- https://access.redhat.com/errata/RHSA-2025:12015
- https://access.redhat.com/errata/RHSA-2025:12016
- https://access.redhat.com/security/cve/CVE-2025-7365
- https://bugzilla.redhat.com/show_bug.cgi?id=2378852
- https://github.com/keycloak/keycloak/security/advisories/GHSA-xhpr-465j-7p9q
- https://nvd.nist.gov/vuln/detail/CVE-2025-7365
FAQ
Is CVE-2025-7365 being exploited?
There is no confirmed exploitation: CVE-2025-7365 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.37% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-7365?
High: CVSS 7.1 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-7365?
org.keycloak:keycloak-services < 26.0.13.
Is there a fix for CVE-2025-7365?
Yes. Fixed in 26.0.13, 26.2.6. Upgrade org.keycloak:keycloak-services to one of 26.0.13, 26.2.6 (or later in the same release line). Vendor workaround: Disable account review in the Identity Provider to prevent users from potentially modifying identity information. Disable the email verification step and use only re-authentication step.
How do I check if I'm affected by CVE-2025-7365?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.