REDHAT-BUG-2501735: High severity Keycloak Keycloak vulnerability

Published Jul 17, 2026
·
Updated

A flaw was found in Keycloak where the default Dynamic Client Registration (DCR) policy permits the use of User Property mappers without validating the target claim path. While the policy checks the mapper provider type, it does not restrict where the mapper can write data within the resulting token. An attacker with a standard user account and a limited Initial Access Token (IAT) can register a new client and configure User Property mappers (such as firstName or lastName) to target the resourceaccess.realm-management.roles claim path. By setting their user profile properties to administrative role names (e.g., manage-clients, realm-admin), the attacker can produce a forged access token containing these roles. Although recent mitigations (CVE-2026-4629) protect the Admin REST API from such forged tokens, the Client Registration API remains vulnerable because it reads the resourceaccess claim directly during authorization. An attacker can use this bypass to perform unauthorized DCR operations, including reading confidential client secrets, modifying redirect URIs, and impersonating service accounts to achieve full realm compromise.

Affected Software

1 affected component
Keycloak Keycloak

Event History

Jul 17, 2026
Data Sourced
via Red Hat·02:39 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2501735?

The severity of REDHAT-BUG-2501735 is classified as high with a score of 7.

2

What is the risk associated with REDHAT-BUG-2501735?

The risk associated with REDHAT-BUG-2501735 is rated as 33.

3

How do I fix REDHAT-BUG-2501735?

To fix REDHAT-BUG-2501735, ensure that the Dynamic Client Registration policy validates the target claim path for User Property mappers.

4

What specific flaw exists in REDHAT-BUG-2501735?

REDHAT-BUG-2501735 includes a flaw where the default DCR policy does not validate the target claim path for User Property mappers.

5

Which software is affected by REDHAT-BUG-2501735?

The software affected by REDHAT-BUG-2501735 is Keycloak.

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