ADVISORIES

GitHub Advisory Database

GHSA-27gc-wj6x-9w55

Keycloak error_description injection on error pages that can trigger phishing attacks

Moderate CVE-2025-10044

Details

Keycloak’s account console accepts 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 packages

EcosystemPackageAffected versions
Mavenorg.keycloak:keycloak-account-ui
All versions before 26.2.9 (fixed in 26.2.9)
Mavenorg.keycloak:keycloak-account-ui
From 26.3.0 before 26.3.4 (fixed in 26.3.4)
Mavenorg.keycloak:keycloak-admin-ui
All versions before 26.2.9 (fixed in 26.2.9)
Mavenorg.keycloak:keycloak-admin-ui
From 26.3.0 before 26.3.4 (fixed in 26.3.4)

References