Keycloak: keycloak error_description injection on error pages (Keycloak keycloak)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.31 % · percentile 24 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- NVD status
- Deferred
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.
Weaknesses (CWE)
- CWE-79 — Improper Neutralization of Input During Web Page Generation
References
- https://access.redhat.com/errata/RHSA-2025:16399
- https://access.redhat.com/errata/RHSA-2025:16400
- https://access.redhat.com/errata/RHSA-2025:19923
- https://access.redhat.com/errata/RHSA-2025:19925
- https://access.redhat.com/security/cve/CVE-2025-10044
- https://bugzilla.redhat.com/show_bug.cgi?id=2393551
- https://github.com/keycloak/keycloak/pull/42443
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N | redhat |
| CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N | NVD · secalert@redhat.com (Secondary) |
Advisories
- GHSA-27gc-wj6x-9w55 — Keycloak error_description injection on error pages that can trigger phishing attacks
European references
- ENISA EUVD · EUVD-2025-27029
- GCVE · GCVE-0-2025-10044
Affected products
| Product | Versions |
|---|---|
| Keycloak · keycloak | affected 0 < 26.2.9 |
| Red Hat · Red Hat build of Keycloak 26.0 | unaffected 26.0.17-1 < * |
| Red Hat · Red Hat build of Keycloak 26.0 | unaffected 26.0-21 < * |
| Red Hat · Red Hat build of Keycloak 26.0 | unaffected 26.0-22 < * |
| Red Hat · Red Hat build of Keycloak 26.0.17 | |
| Red Hat · Red Hat build of Keycloak 26.2 | unaffected 26.2.9-1 < * |
| Red Hat · Red Hat build of Keycloak 26.2 | unaffected 26.2-9 < * |
| Red Hat · Red Hat build of Keycloak 26.2 | unaffected 26.2-9 < * |
| Red Hat · Red Hat build of Keycloak 26.2.9 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |