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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.keycloak:keycloak-account-ui | 26.2.9 | GHSA-27gc-wj6x-9w55 |
| Maven | org.keycloak:keycloak-account-ui | 26.3.4 | GHSA-27gc-wj6x-9w55 |
| Maven | org.keycloak:keycloak-admin-ui | 26.2.9 | GHSA-27gc-wj6x-9w55 |
| Maven | org.keycloak:keycloak-admin-ui | 26.3.4 | GHSA-27gc-wj6x-9w55 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Keycloak | keycloak | 0 – before 26.2.9 |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0.17 | see references |
| Red Hat | Red Hat build of Keycloak 26.2 | see references |
| Red Hat | Red Hat build of Keycloak 26.2 | see references |
| Red Hat | Red Hat build of Keycloak 26.2 | see references |
| Red Hat | Red Hat build of Keycloak 26.2.9 | see references |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
References
- RHSA-2025:16399 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:16400 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:19923 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:19925 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-10044 vdb-entry, x_refsource_REDHAT
- RHBZ#2393551 issue-tracking, x_refsource_REDHAT
- https://github.com/keycloak/keycloak/pull/42443