High severity · published May 19, 2026
CVE-2026-7504
Org.keycloak/keycloak-services: open redirect when using wildcard valid redirect uris in keycloak
8.1
CVSS
0.5%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 43% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RH
Red Hat build of Keycloak 26.2 · Red Hat
All versions, or not specified · source: vendor, CISA
RH
Red Hat build of Keycloak 26.4 · Red Hat
All versions, or not specified · source: vendor, CISA
BO
Build OF Keycloak · Redhat
26.4 before 26.4.12 · source: NVD
RH
Red Hat build of Keycloak 26.2.16 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat build of Keycloak 26.4.12 · Red Hat
All versions, or not specified · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-7504
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-7504
Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:19594
Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:19595
Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:19596
Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:19597
Vendor Advisory
https://access.redhat.com/security/cve/CVE-2026-7504
Vendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2464128
More from Red Hat build of Keycloak 26.2
8.8
CVE-2026-3047
Org.keycloak.broker.saml: keycloak saml broker: authentication bypass due to disabled saml client completing idp-initiated login
8.1
CVE-2026-4636
Keycloak: keycloak: uma policy bypass allows authenticated users to gain unauthorized access to victim-owned resources.
8.1
CVE-2026-2603
Keycloak: keycloak: unauthorized authentication via disabled saml identity provider
8.1
CVE-2026-1529
Org.keycloak.services.resources.organizations: keycloak: unauthorized organization registration via improper invitation token validation
7.7
CVE-2026-2092
Keycloak-services: keycloak: unauthorized access via improper validation of encrypted saml assertions
