Red Hat build of Keycloak 26.4
Keycloak: keycloak: cross-site scripting (xss) via case-insensitive uri validation bypass
A flaw was found in Keycloak. A remote attacker with administrative privileges, specifically those with `manage-client` permission or access to client registration endpoints, could bypass client Uniform Resource Identifier (URI) validation. This is achieved by registering a malicious client with a specially crafted redirect URI using a case-insensitive `javascript:` or `data:` scheme. This Cross-Site Scripting (XSS) vulnerability allows for arbitrary code execution in the Keycloak origin when a victim clicks the crafted link, such as in the logout flow or the Admin Console.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 26.4.13-1
Fixed in 26.4-19
Fixed in 26.4-19
Fixed in 26.6.4-2
Fixed in 26.6-8
Fixed in 26.6-8
Mitigation
Upgrade Red Hat build of Keycloak 26.4 to 26.4.13-1 or later.
Upgrade Red Hat build of Keycloak 26.4 to 26.4-19 or later.
Upgrade Red Hat build of Keycloak 26.4 to 26.4-19 or later.
Upgrade Red Hat build of Keycloak 26.6 to 26.6.4-2 or later.
Upgrade Red Hat build of Keycloak 26.6 to 26.6-8 or later.
Upgrade Red Hat build of Keycloak 26.6 to 26.6-8 or later.
Workaround
To mitigate this vulnerability, restrict the ability to register new clients and manage existing client configurations. If Dynamic Client Registration is not required, disable it in Keycloak's Realm Settings under Client Registration Policies. If Dynamic Client Registration is necessary, ensure that policies are strictly configured to prevent anonymous client registration and require initial access tokens for all client registrations. Additionally, limit the `manage-client` role to only trusted administrators. Changes to Keycloak configuration may require a service restart or redeployment to take effect.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:30049
- Vendor advisory access.redhat.com/errata/RHSA-2026:30050
- Vendor advisory access.redhat.com/errata/RHSA-2026:30083
1 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:30084
Timeline
Days relative to CVE publicationFirst public PoC 46 days after publication; not in CISA KEV. First PoC: Saku0512/CVE-2026-9086-poc (created 10 Aug 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Saku0512/CVE-2026-9086-poc | 10 Aug 2026 +46 d | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.