Red Hat build of Keycloak 26
Keycloak: phishing attack via email verification step in first login flow
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 26.0.13
- >= 26.2.0, < 26.2.6
Fixed in 26.0.13, 26.2.6
Fixed in 26.0.13-2
Fixed in 26.0-16
Fixed in 26.0-17
Fixed in 26.2.6-1
Fixed in 26.2-6
Fixed in 26.2-6
Mitigation
Upgrade the affected product to 26.0.13 or 26.2.6 or later.
Upgrade Red Hat build of Keycloak 26.0 to 26.0.13-2 or later.
Upgrade Red Hat build of Keycloak 26.0 to 26.0-16 or later.
Upgrade Red Hat build of Keycloak 26.0 to 26.0-17 or later.
Upgrade Red Hat build of Keycloak 26.2 to 26.2.6-1 or later.
Upgrade Red Hat build of Keycloak 26.2 to 26.2-6 or later.
Upgrade Red Hat build of Keycloak 26.2 to 26.2-6 or later.
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.
References
- Vendor advisory access.redhat.com/errata/RHSA-2025:11986
- Vendor advisory access.redhat.com/errata/RHSA-2025:11987
- Vendor advisory access.redhat.com/errata/RHSA-2025:12015
2 more
- Vendor advisory access.redhat.com/errata/RHSA-2025:12016
- Patch github.com/keycloak/keycloak/pull/40520
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.