REDHAT-BUG-2508306: Medium severity Keycloak secure-client-uris client policy executor vulnerability

Published Jul 29, 2026
·
Updated

A flaw was found in the secure-client-uris client policy executor in Keycloak. The executor permits non-HTTPS redirect URIs when allow-http-on-localhost is enabled by performing a simple string prefix check for http://localhost or http://127.0.0.1 instead of parsing the URI to validate the host component. An attacker can exploit this by registering a client via Dynamic Client Registration using a redirect URI that starts with the allowed prefix but points to an attacker-controlled domain (e.g., http://localhost.evil.test). If the policy is scoped to authorizationcode requests, it fails to block the registration or the subsequent use of the malicious URI. When a victim authenticates through the attacker's client, the authorization code is transmitted over cleartext HTTP to the attacker's server. This allows the attacker to intercept the authorization code and potentially gain unauthorized access to the victim's session.

Affected Software

1 affected component
Keycloak secure-client-uris client policy executor

Event History

Jul 29, 2026
Data Sourced
via Red Hat·08:24 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2508306?

The severity of REDHAT-BUG-2508306 is medium, rated at 4.

2

What flaw does REDHAT-BUG-2508306 describe?

REDHAT-BUG-2508306 describes a flaw in Keycloak's secure-client-uris client policy executor that allows non-HTTPS redirect URIs due to improper handling of localhost URIs.

3

How can I mitigate the risk associated with REDHAT-BUG-2508306?

To mitigate the risk of REDHAT-BUG-2508306, ensure that the allow-http-on-localhost setting is disabled to prevent non-HTTPS redirects.

4

When was REDHAT-BUG-2508306 published?

REDHAT-BUG-2508306 was published on July 29, 2026.

5

Who is affected by REDHAT-BUG-2508306?

Users and administrators of Keycloak using the secure-client-uris client policy executor are affected by REDHAT-BUG-2508306.

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