CVE-2026-15943: Keycloak-services: keycloak-services: oidc idp update reuses masked client secret after token url change

Published Jul 16, 2026
·
Updated

A flaw was found in the Keycloak keycloak-services component, which handles the management of identity providers. The issue occurs when a delegated administrator updates an OIDC identity provider using a masked client secret sentinel value. Due to improper validation, Keycloak reuses the existing real secret even if security-sensitive fields like the token URL have been changed, allowing an attacker to redirect and capture the secret.

Other sources

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.

Red Hat

Affected Software

2 affected components
Keycloak keycloak-services
redhat Build Of Keycloak

Event History

Jul 16, 2026
Data Sourced
via Red Hat·09:32 AM
DescriptionSeverityAffected Software
Jul 17, 2026
CVE Published
via MITRE·11:49 AM
Data Sourced
via MITRE·11:49 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:17 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-15943?

The severity of CVE-2026-15943 is rated as medium with a score of 5.5.

2

How do I fix CVE-2026-15943?

To fix CVE-2026-15943, ensure that the Keycloak services are updated to the latest version where the vulnerability has been patched.

3

What systems are affected by CVE-2026-15943?

CVE-2026-15943 affects Keycloak keycloak-services components that manage identity providers.

4

What is the impact of CVE-2026-15943?

The impact of CVE-2026-15943 includes potential unauthorized access due to the improper reuse of a masked client secret.

5

Who can exploit CVE-2026-15943?

Delegated administrators with the ability to update an OIDC identity provider can exploit CVE-2026-15943.

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