4.3Medium

CVE-2025-10044Keycloak: keycloak error_description injection on error pages

Keycloak keycloak; 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 Published: (1 year ago)

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.

Weakness (CWE): CWE-79

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
build keycloak 26.0 —
build keycloak 26.2 —
Keycloak keycloak < 26.2.9
Red Hat Red Hat build of Keycloak 26.0 all versions
Red Hat Red Hat build of Keycloak 26.0.17 —
Red Hat Red Hat build of Keycloak 26.2 all versions
Red Hat Red Hat build of Keycloak 26.2.9 —

References and patches