CVE-2026-7504 Details
Description
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.
A vulnerability exists in Keycloak's URL validation during redirect operations. This flaw allows attackers to bypass validation and redirect users to unauthorized URLs, potentially exposing sensitive information or facilitating further attacks. The issue specifically affects Keycloak clients with wildcards in the 'Valid Redirect URIs' field and requires user interaction to exploit. The vulnerability arises from a mismatch between Keycloak's handling of URLs and Java's URI parsing, particularly in the user-info component. Attackers can craft malicious redirect URLs that exploit this discrepancy, leading to open redirection.
To address this vulnerability, avoid using wildcard characters in the 'Valid Redirect URIs' field for Keycloak clients. Instead, explicitly list all allowed redirect URIs. Review client configurations to ensure wildcards are not used unless absolutely necessary, and if they are, ensure the application can handle open redirect vulnerabilities. Note that changes to client configurations may require a restart or reload of the Keycloak service, which could impact active user sessions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 19, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | redhat-SADP |
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| redhat build of keycloak | >= 26.4, < 26.4.12 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 3, 2026 | Initial Analysis | [email protected] |
| May 20, 2026 | CVE Modified | [email protected] |
| May 20, 2026 | CVE Modified | [email protected] |
| May 19, 2026 | New CVE Received | [email protected] |