Description
A flaw was found in Keycloak. Keycloak’s account console and other pages accept arbitrary text in the error_description query parameter. This text is directly rendered in error pages without validation or sanitization. While HTML encoding prevents XSS, an attacker can craft URLs with misleading messages (e.g., fake support phone numbers or URLs), which are displayed within the trusted Keycloak UI. This creates a phishing vector, potentially tricking users into contacting malicious actors.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Keycloak | keycloak | < 26.2.9 | 26.2.9 |
| Red Hat | Red Hat build of Keycloak 26.0 | — | — |
| Red Hat | Red Hat build of Keycloak 26.0.17 | — | — |
| Red Hat | Red Hat build of Keycloak 26.2 | — | — |
| Red Hat | Red Hat build of Keycloak 26.2.9 | — | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-account-ui | < 26.2.9 | 26.2.9 | GHSA-27gc-wj6x-9w55 |
| Maven | org.keycloak:keycloak-account-ui | >= 26.3.0, < 26.3.4 | 26.3.4 | GHSA-27gc-wj6x-9w55 |
| Maven | org.keycloak:keycloak-admin-ui | < 26.2.9 | 26.2.9 | GHSA-27gc-wj6x-9w55 |
| Maven | org.keycloak:keycloak-admin-ui | >= 26.3.0, < 26.3.4 | 26.3.4 | GHSA-27gc-wj6x-9w55 |
Advisories 1
- WID-SEC-2025-1987 Keycloak: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 6, 2026
References
- RHSA-2025:16399 vendor-advisory
- RHSA-2025:16400 vendor-advisory
- RHSA-2025:19923 vendor-advisory
- RHSA-2025:19925 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-10044 vdb-entry
- RHBZ#2393551 issue-tracking
- https://github.com/keycloak/keycloak/pull/42443