CVE-2025-10044 Keycloak: keycloak error_description injection on error pages
Attackers can inject misleading text into Keycloak error pages, creating a phishing vector to trick users into contacting malicious actors.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-10044?
CVE-2025-10044 is a medium-severity cross-site scripting vulnerability in Red Hat build of Keycloak 26.0, published on 5 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
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.
Weakness: CWE-79
Which versions are affected by CVE-2025-10044?
8 open source packages ship an affected version, including org.keycloak:keycloak-account-ui and org.keycloak:keycloak-admin-ui.
| Package | Affected | Fixed in |
|---|---|---|
org.keycloak:keycloak-account-ui Maven | All versions | 26.2.9 |
org.keycloak:keycloak-account-ui Maven | All versions | 26.2.9 |
org.keycloak:keycloak-account-ui Maven | From 26.3.0 | 26.3.4 |
org.keycloak:keycloak-account-ui Maven | From 26.3.0 | 26.3.4 |
org.keycloak:keycloak-admin-ui Maven | All versions | 26.2.9 |
org.keycloak:keycloak-admin-ui Maven | All versions | 26.2.9 |
2 more packages
org.keycloak:keycloak-admin-ui Maven | From 26.3.0 | 26.3.4 |
org.keycloak:keycloak-admin-ui Maven | From 26.3.0 | 26.3.4 |
How do I fix CVE-2025-10044?
Upgrade org.keycloak:keycloak-account-ui to a fixed version for your release line: 26.2.9 or 26.3.4.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-10044 being exploited?
There is no known exploitation of CVE-2025-10044 in the wild and no public exploit code.
Sources
Also known as ECHO-6c12-d103-6b0a, GHSA-27gc-wj6x-9w55, MINI-37g2-jwj3-36p9.