CVE-2026-136703: Keycloak-services: keycloak-services: admin api v2 client put reveals client-id existence to unauthorized callers

Published Nov 25, 2026
·
Updated

A flaw was found in the Admin REST API v2 of Keycloak. This component is used by administrators to manage realm configurations, including clients. The issue occurs because the API processes a client update (PUT) request and performs payload validation before verifying if the caller has the required permissions to view or manage that specific client. By sending a request with a mismatched client ID in the body, an authenticated user without any administrative privileges can distinguish between existing and non-existing clients based on whether the server returns a 400 Bad Request or a 403 Forbidden error.

Other sources

A response discrepancy information leak was discovered in the Keycloak Admin REST API v2 clients endpoint. The root cause is the order of operations in the path resolver and the update function. When a PUT request is sent to /admin/api/{realm}/clients/v2/{target-id}, the server validates the consistency of the clientId in the request body against the target-id in the URL before performing the per-client authorization check. If an authenticated attacker with no client view or manage permissions sends a PUT request where the body contains a different clientId than the URL path, the server returns a 400 Bad Request if the target-id exists in the database. If the target-id does not exist, the path resolver fails earlier and returns a 403 Forbidden. This discrepancy allows an attacker to reliably enumerate or confirm the existence of client IDs within a realm.

— Red Hat

Affected Software

1 affected component
Keycloak Keycloak Admin REST API v2

Event History

Nov 25, 2026
Data Sourced
via Red Hat·07:17 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·12:42 PM
Data Sourced
via MITRE·12:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker must be authenticated to Keycloak, but does not need administrative privileges. They can target the Admin REST API v2 client update endpoint to probe for client identifiers.

2

What information can an attacker obtain?

The issue exposes whether a client ID exists. A 400 Bad Request response to a request with a mismatched client ID indicates a different condition than a 403 Forbidden response, allowing enumeration of existing versus non-existing clients.

3

Does exploitation require changing a client configuration?

No. The described impact is client-ID existence disclosure through response differences during PUT request processing; the provided data does not indicate that an unauthorized caller can successfully modify a client.

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