XSS in Keycloak
CVE-2025-10044
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS 0.003, 25.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Keycloak — versions 0
Weakness classification (CWE)
References
- RHSA-2025:16399 (vendor-advisory)
- RHSA-2025:16400 (vendor-advisory)
- RHSA-2025:19923 (vendor-advisory)
- RHSA-2025:19925 (vendor-advisory)
- access.redhat.com/security/cve/CVE-2025-10044 (vdb-entry)
- RHBZ#2393551 (issue-tracking)
- github.com/keycloak/keycloak/pull/42443