Keycloak: keycloak error_description injection on error pages (Keycloak keycloak)
En bref
- Source
- NVD
- EPSS
- EPSS 0.31 % · centile 24 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- redhat
- Statut NVD
- 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.
Faiblesses (CWE)
- CWE-79 — Injection de code indirecte (XSS)
Références
- 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 | Vecteur | Évalué par |
|---|---|---|---|
| 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) |
Avis
- GHSA-27gc-wj6x-9w55 — Keycloak error_description injection on error pages that can trigger phishing attacks
Références européennes
- ENISA EUVD · EUVD-2025-27029
- GCVE · GCVE-0-2025-10044
Produits affectés
| Produit | 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 |