REDHAT-BUG-2584738: CSRF

Published Nov 26, 2026
·
Updated

A flaw was found in the RedirectUtils.containsForbiddenOidcParameters method of Keycloak. Keycloak is designed to reject authorization requests where the redirecturi contains forbidden OIDC response parameters (such as code, state, iss, or sessionstate) to prevent parameter injection. However, the validation logic performs a literal string comparison that fails to account for a leading ? character in the parameter name. An attacker can exploit this by crafting a redirecturi such as https://good.example/cb??code=EVIL&atlrovo=disablepublicresolution. Because the parameter name is seen as ?code instead of code, it bypasses the forbidden parameter check. When the server appends its own parameters after a successful login, the attacker-supplied value appears first. Browser-based clients that strip the leading ? and read the first occurrence of a parameter will obtain the attacker's value. This enables a login CSRF or account confusion attack where a victim ends up logged into the attacker's account. This is an incomplete fix for CVE-2026-9689 and CVE-2026-18209.

Affected Software

1 affected component
Red Hat Keycloak

Event History

Nov 26, 2026
Data Sourced
via Red Hat·10:59 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which client behavior makes this issue exploitable?

Browser-based clients are affected if they strip a leading question mark from a parameter name and use the first occurrence of a duplicated parameter. In that case, the attacker-controlled value can be selected instead of the value appended by the server.

2

What is the likely impact on a victim?

A victim can be logged into the attacker's account, resulting in login CSRF or account confusion. The issue concerns authorization redirects that complete after a successful login.

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