CVE-2025-7365: Keycloak phishing attack via email verification step in first login flow
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.
Published Jul 30, 2025
Affected packages
org.keycloak:keycloak-services
- Ecosystem
- Maven
- Affected
- < 26.0.13
- Fixed in
- 26.0.13
- Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-services
org.keycloak:keycloak-services
- Ecosystem
- Maven
- Affected
- >= 26.2.0, < 26.2.6
- Fixed in
- 26.2.6
- Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-services
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://github.com/keycloak/keycloak/security/advisories/GHSA-xhpr-465j-7p9q
- https://nvd.nist.gov/vuln/detail/CVE-2025-7365
- https://github.com/keycloak/keycloak/issues/40446
- https://github.com/keycloak/keycloak/pull/40520
- 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/releases/tag/26.0.13
- https://github.com/keycloak/keycloak/releases/tag/26.2.6
- https://github.com/keycloak/keycloak/releases/tag/26.3.0
- https://github.com/advisories/GHSA-xhpr-465j-7p9q
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-11800
Keycloak has authentication bypass via jwt algorithm confusion
high8.1Nov 3, 2026CVE-2026-9083
Keycloak vulnerable to information disclosure through arbitrary filesystem path probing
medium4.9Oct 29, 2026CVE-2026-9086
Keycloak vulnerable to cross-site scripting (xss) via case-insensitive uri validation bypass
high7.3Oct 29, 2026CVE-2026-9705
Keycloak: Attacker can re-enable and take over disabled clients via registration access token
medium6.5Oct 29, 2026CVE-2026-9799
Keycloak allows unauthorized access to resources via uma permission ticket bypass
medium4.6Oct 29, 2026CVE-2026-9800
Keycloak vulnerable to authorization bypass via incorrect uri comparison
high8.1Oct 29, 2026
