Vulnerability · Published Sep 5, 2025 · Assigned by redhat

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

Medium 4.3

In plain English

A medium-severity cross-site scripting in keycloak from Keycloak. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.3%top 74.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.keycloak:keycloak-account-ui26.2.9GHSA-27gc-wj6x-9w55
Mavenorg.keycloak:keycloak-account-ui26.3.4GHSA-27gc-wj6x-9w55
Mavenorg.keycloak:keycloak-admin-ui26.2.9GHSA-27gc-wj6x-9w55
Mavenorg.keycloak:keycloak-admin-ui26.3.4GHSA-27gc-wj6x-9w55

Affected products (as reported)

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

References