← All Advisories
Reported from OT-Advisories.com as of

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

CVECVE-2026-7504
CVSS Score / Version
8.1 (High) / CVSS v3.1
Updated2026-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

VendorProductAffected VersionsPatch Status
Red HatRed Hat Build of Keycloak
Red HatRed Hat build of Keycloak 26.2
Red HatRed Hat build of Keycloak 26.4
Red HatRed Hat build of Keycloak 26.2.16
Red HatRed Hat build of Keycloak 26.4.12
SubsystemsOT Supporting Infrastructure
SectorsMultiple

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

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-7504
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-7504
Vendor advisoryhttps://access.redhat.com/errata/RHSA-2026:19594
Vendor advisoryhttps://access.redhat.com/errata/RHSA-2026:19595
Vendor advisoryhttps://access.redhat.com/errata/RHSA-2026:19596
Vendor advisoryhttps://access.redhat.com/errata/RHSA-2026:19597
Vendor advisoryhttps://access.redhat.com/security/cve/CVE-2026-7504
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.