REDHAT-BUG-2531871: Medium severity Keycloak org.keycloak.services.clientregistration vulnerability

Published Sep 11, 2026
·
Updated

A flaw was found in the org.keycloak.services.clientregistration Java package in Keycloak. The Dynamic Client Registration GET endpoint at /realms/{realm}/clients-registrations/default/{clientId} fails to mask the client secret in its response. While a similar issue was previously fixed for the Admin REST API, this specific endpoint was overlooked. An authenticated attacker with the view-clients role can exploit this to retrieve the cleartext secret of any confidential client in the realm. With this secret, the attacker can perform actions such as obtaining access tokens via the client credentials grant, potentially leading to full realm compromise if the client's service account has elevated permissions.

Affected Software

1 affected component
Keycloak org.keycloak.services.clientregistration

Event History

Sep 11, 2026
Data Sourced
via Red Hat·01:16 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated user or attacker with the view-clients role in a realm can exploit the affected Dynamic Client Registration GET endpoint. The issue applies to confidential clients in that realm.

2

What does an attacker need to do to obtain a client secret?

The attacker needs to call the Dynamic Client Registration GET endpoint at /realms/{realm}/clients-registrations/default/{clientId} for a confidential client. The endpoint returns the client secret in cleartext instead of masking it.

3

What is the likely impact after a secret is disclosed?

The disclosed secret can be used to obtain access tokens through the client credentials grant. Impact can extend to full realm compromise when the affected client's service account has elevated permissions.

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