Org.keycloak/keycloak-services: open redirect when using wildcard valid redirect uris in keycloak

Summary

CVECVE-2026-7504
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-05-19 12:16:19 UTC
Updated2026-06-03 19:52:36 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 8.1 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

EPSS: 0.000130000 probability, percentile 0.024040000 (date 2026-06-03)

Problem Types: CWE-601 | CWE-601 URL Redirection to Untrusted Site ('Open Redirect')


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary8.1HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
3.1CNACVSS8.1HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Redhat Build Of Keycloak All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Build Of Keycloak 26.2 unaffected 26.2.16-1 * rpm Not specified
CNA Red Hat Red Hat Build Of Keycloak 26.2 unaffected 26.2-21 * rpm Not specified
CNA Red Hat Red Hat Build Of Keycloak 26.2 unaffected 26.2-21 * rpm Not specified
CNA Red Hat Red Hat Build Of Keycloak 26.2.16 Not specified Not specified
CNA Red Hat Red Hat Build Of Keycloak 26.4 unaffected 26.4.12-1 * rpm Not specified
CNA Red Hat Red Hat Build Of Keycloak 26.4 unaffected 26.4-17 * rpm Not specified
CNA Red Hat Red Hat Build Of Keycloak 26.4 unaffected 26.4-17 * rpm Not specified
CNA Red Hat Red Hat Build Of Keycloak 26.4.12 Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/errata/RHSA-2026:19594 [email protected] access.redhat.com Vendor Advisory
access.redhat.com/errata/RHSA-2026:19595 [email protected] access.redhat.com Vendor Advisory
access.redhat.com/errata/RHSA-2026:19596 [email protected] access.redhat.com Vendor Advisory
access.redhat.com/errata/RHSA-2026:19597 [email protected] access.redhat.com Vendor Advisory
access.redhat.com/security/cve/CVE-2026-7504 [email protected] access.redhat.com Vendor Advisory
bugzilla.redhat.com/show_bug.cgi [email protected] bugzilla.redhat.com Vendor Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Red Hat would like to thank Duarte Antunes (Intapp) and João Mendes (Intapp) for reporting this issue. (en)

Additional Advisory Data

SourceTimeEvent
CNA2026-04-30T14:46:59.812ZReported to Red Hat.
CNA2026-05-19T10:52:12.777ZMade public.

Workarounds

CNA: To mitigate this vulnerability, Red Hat recommends avoiding the use of wildcard characters in the "Valid Redirect URIs" field for clients within Keycloak. Instead, explicitly list all allowed redirect URIs. Review all client configurations to ensure that wildcards are not used unless absolutely necessary, and if used, ensure that the client application is robust against open redirect vulnerabilities. Changes to client configurations in Keycloak may require a restart or reload of the Keycloak service to take effect, which could impact active user sessions.

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report