Keycloak: phishing attack via email verification step in first login flow
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-346.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | keycloak | before 26.0.13; 26.2.0 to before 26.2.6 | 26.0.13, 26.2.6 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26 | — | — | Not affected | CNA |
| Red Hat | Red Hat build of Keycloak 26 | — | — | Not affected | CNA |
| Red Hat | Red Hat build of Keycloak 26.0 | — | 26.0.13-2 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.0 | — | 26.0-16 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.0 | — | 26.0-17 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.2 | — | 26.2.6-1 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.2 | — | 26.2-6 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.2 | — | 26.2-6 | Patch available | CNA |
| — | org.keycloak:keycloak-services (Maven) | before 26.0.13 | 26.0.13 | Patch available | GHSA-xhpr-465j-7p9q |
| — | org.keycloak:keycloak-services (Maven) | 26.2.0 to before 26.2.6 | 26.2.6 | Patch available | GHSA-xhpr-465j-7p9q |
- keycloak Vendor— Affected before 26.0.13; 26.2.0 to before 26.2.6 Fixed in 26.0.13, 26.2.6 Patch available CNA
- Red Hat build of Keycloak 26 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat build of Keycloak 26 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0.13-2 Patch available CNA
- Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0-16 Patch available CNA
- Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0-17 Patch available CNA
- Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2.6-1 Patch available CNA
- Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2-6 Patch available CNA
- Red Hat build of Keycloak 26.2 VendorRed Hat Affected — Fixed in 26.2-6 Patch available CNA
- org.keycloak:keycloak-services (Maven) Vendor— Affected before 26.0.13 Fixed in 26.0.13 Patch available GHSA-xhpr-465j-7p9q
- org.keycloak:keycloak-services (Maven) Vendor— Affected 26.2.0 to before 26.2.6 Fixed in 26.2.6 Patch available GHSA-xhpr-465j-7p9q
Remediation
- Fix · CNA keycloak Fixed in 26.0.13, 26.2.6
- Fix · GHSA-xhpr-465j-7p9q org.keycloak:keycloak-services (Maven) Fixed in 26.0.13 Advisory →
- Fix · GHSA-xhpr-465j-7p9q org.keycloak:keycloak-services (Maven) Fixed in 26.2.6 Advisory →
Red Hat 4 advisories
- RHSA-2025:12016 Released 2025-07-29 · Red Hat rating ModerateRed Hat build of Keycloak 26.2.6 Images Security Update
- Red Hat build of Keycloak 26.2 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
- RHSA-2025:12015 Released 2025-07-29 · Red Hat rating ModerateRed Hat build of Keycloak 26.2.6 Security Update
- Red Hat build of Keycloak 26
- RHSA-2025:11986 Released 2025-07-28 · Red Hat rating ModerateRed Hat build of Keycloak 26.0.13 Images Update
- Red Hat build of Keycloak 26.0 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
Show 1 more Red Hat advisories
- RHSA-2025:11987 Released 2025-07-28 · Red Hat rating ModerateRed Hat build of Keycloak 26.0.13 Update
- Red Hat build of Keycloak 26
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat build of Keycloak 26 | Fixed | RHSA-2025:11987 |
| Red Hat build of Keycloak 26.0 | Fixed | RHSA-2025:11986 |
| Red Hat build of Keycloak 26.2 | Fixed | RHSA-2025:12016 |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-7365
- 2026-10-03 Alias added: GHSA-xhpr-465j-7p9q
References
Advisory 7
Other 7
- https://github.com/keycloak/keycloak/issues/40446
- https://github.com/keycloak/keycloak/pull/40520
- https://github.com/keycloak/keycloak/security/advisories/GHSA-xhpr-465j-7p9q
- https://github.com/keycloak/keycloak
- 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
More Red Hat Keycloak vulnerabilities
- TI-2024-01049 Keycloak: path transversal in redirection validation CVSS 3.1HIGH 8.1
- TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
- TI-2020-08665 Server-side request forgery in keycloak CVSS 3.1MEDIUM 5.3
- TI-2022-03468 Path traversal in Red Hat Keycloak CVSS 3.1CRITICAL 9.1
- TI-2021-03612 A POST based reflected Cross Site Scripting vulnerability on has been identified in Keycloak. CVSS 3.1MEDIUM 6.1
- TI-2022-03994 Cross-site scripting in keycloak CVSS 3.1CRITICAL 10.0
Sources
- CVE-2025-7365 · CVE Program
- CVE-2025-7365 · NVD
- FIRST EPSS
- GHSA-xhpr-465j-7p9q · GitHub Advisory Database · CC BY 4.0
- CVE-2025-7365 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences