REDHAT-BUG-2501270: Medium severity Keycloak Keycloak vulnerability

Published Jul 16, 2026
·
Updated

A vulnerability was identified in Keycloak's admin API where the secret masking boundary is bypassed for OIDC identity-provider client secrets. The flaw exists in the IdentityProviderResource.updateIdpFromRep() function. When a PUT request is made to update an IdP configuration and the clientSecret is set to the masked sentinel value (ComponentRepresentation.SECRETVALUE), Keycloak unconditionally copies the actual stored secret into the update. The root cause is a lack of validation to check if security-sensitive destination fields—specifically tokenUrl, clientId, or clientAuthMethod}}—have been modified in the same request. A delegated IdP manager with {{manage-identity-providers permissions can exploit this by changing the tokenUrl to an attacker-controlled endpoint while providing the masked secret sentinel. Keycloak will then bind the real secret to the new, malicious endpoint, allowing the attacker to capture the secret through normal broker traffic.

Affected Software

1 affected component
Keycloak Keycloak

Event History

Jul 16, 2026
Data Sourced
via Red Hat·09:32 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2501270?

The severity of REDHAT-BUG-2501270 is classified as medium.

2

How do I fix REDHAT-BUG-2501270?

To fix REDHAT-BUG-2501270, update Keycloak to the latest version where the vulnerability is patched.

3

What systems are affected by REDHAT-BUG-2501270?

REDHAT-BUG-2501270 affects Keycloak's admin API when managing OIDC identity-provider client secrets.

4

What is the risk level associated with REDHAT-BUG-2501270?

The risk level associated with REDHAT-BUG-2501270 is rated at 19.

5

What function is involved in the vulnerability of REDHAT-BUG-2501270?

The vulnerability in REDHAT-BUG-2501270 is found in the IdentityProviderResource.updateIdpFromRep() function.

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