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

Published Apr 30, 2026
·
Updated

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.

Other sources

Vulnerability in org.keycloak/keycloak-services

Red Hat

Affected Software

2 affected components
maven/org.keycloak/keycloak-services
redhat Build Of Keycloak>=26.4<26.4.12

Event History

Apr 30, 2026
Data Sourced
via Red Hat·02:47 PM
DescriptionSeverityAffected Software
May 19, 2026
CVE Published
via MITRE·11:01 AM
Data Sourced
via MITRE·11:01 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-7504?

CVE-2026-7504 has a severity rating of 8.1, categorized as high.

2

How do I fix CVE-2026-7504?

To fix CVE-2026-7504, update to the latest patched version of Keycloak that addresses the open redirect vulnerability.

3

What impact does CVE-2026-7504 have on users?

CVE-2026-7504 can lead to unauthorized redirects, potentially exposing sensitive information or facilitating further attacks.

4

Which versions of Keycloak are affected by CVE-2026-7504?

CVE-2026-7504 affects versions of Keycloak that utilize wildcard valid redirect URIs without proper validation.

5

What types of attacks can result from CVE-2026-7504?

CVE-2026-7504 allows attackers to redirect users to malicious sites, leading to phishing attempts or credential theft.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203