CVE-2026-89298: Keycloak-services: keycloak-services: confidential client secret disclosed to view-clients role via client registration get

Published Sep 11, 2026
·
Updated

A flaw was found in the Dynamic Client Registration service of Keycloak, an open-source identity and access management solution. The issue occurs when a user with the view-clients role accesses the client registration endpoint to retrieve client details. Due to a failure to mask sensitive information, the service returns the client's confidential secret in cleartext. This could allow a read-only administrator to obtain full access to the affected client's account and potentially escalate their privileges within the realm.

Other sources

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.

Red Hat

Affected Software

2 affected components
Keycloak Dynamic Client Registration service
maven/org.keycloak/services/clientregistration

Event History

Sep 11, 2026
Data Sourced
via Red Hat·01:16 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What access does an attacker need to retrieve a client secret?

The attacker must be authenticated in the target realm and have the view-clients role. No user interaction is required.

2

Which client secrets can be exposed?

A user with the view-clients role can retrieve the cleartext secret of any confidential client in the realm through the Dynamic Client Registration GET endpoint.

3

What can an attacker do with an exposed confidential client secret?

The secret can be used to obtain access tokens through the client credentials grant. Depending on the affected client's permissions, this may enable privilege escalation and potentially compromise the realm.

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