Keycloak Wildcard Redirect URI Validation Bypassed by Multi-@ User-Info URL Construction, Redirecting Users to Attacker-Controlled Sites
Last refreshed2026-11-17
Status: UPDATED
| Advisory ID: CVE-2026-7504
Key Details
CVE
CVE-2026-7504
CVSS Score / Version
8.1 (High) / CVSS v3.1
Updated
2026-10-26
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
CVSS Prose
attack vector is network; attack complexity is low; privileges required is none; user interaction is required; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is none.
Affected products
Red Hat Build of Keycloak, Red Hat build of Keycloak 26.2, Red Hat build of Keycloak 26.4, Red Hat build of Keycloak 26.2.16, and Red Hat build of Keycloak 26.4.12
Classified as
CWE-601 (URL Redirection to Untrusted Site ('Open Redirect'))
Exploitation prediction (EPSS)
0.64% probability of exploitation in the next 30 days (51% percentile) -- FIRST.org's EPSS model.
Affected Products, Subsystems & Sectors
Vendor
Product
Affected Versions
Patch Status
Red Hat
Red Hat Build of Keycloak
Red Hat
Red Hat build of Keycloak 26.2
Red Hat
Red Hat build of Keycloak 26.4
Red Hat
Red Hat build of Keycloak 26.2.16
Red Hat
Red Hat build of Keycloak 26.4.12
Subsystems
OT Supporting Infrastructure
Sectors
Multiple
What to Know
A flaw was found in Keycloak's URL validation logic during redirect operations. By crafting a malicious request, an attacker could bypass validation to redirect users to unauthorized URLs, potentially leading to the exposure of sensitive information within the domain or facilitating further attacks. This vulnerability specifically affects Keycloak clients configured with a wildcard (*) in the "Valid Redirect URIs" field and requires user interaction to be successfully exploited.
The issue stems from a discrepancy in how Keycloak and the underlying Java URI implementation handle the user-info component of a URL. If a malicious redirect URL is constructed using multiple @ characters in the user-info section, Java's URI parser fails to extract the user-info, leaving only the raw authority field. Consequently, Keycloak's validation check fails to detect the malformed user-info, falls back to a wildcard comparison, and incorrectly permits the malicious redirect. (NVD)
What to Do
Topic: New Red Hat build of Keycloak 26.2.16 packages are available from the Customer Portal. Solution: Before applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. Source: Red Hat RHSA-2026:19594
New Red Hat build of Keycloak 26.4.12 packages are available from the Customer Portal. Before applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. Source: Red Hat RHSA-2026:19596