CVE-2026-15943: Keycloak-services: keycloak-services: oidc idp update reuses masked client secret after token url change
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
Event History
Frequently Asked Questions
What is the severity of CVE-2026-15943?
The severity of CVE-2026-15943 is rated as medium with a score of 5.5.
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.
What systems are affected by CVE-2026-15943?
CVE-2026-15943 affects Keycloak keycloak-services components that manage identity providers.
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.
Who can exploit CVE-2026-15943?
Delegated administrators with the ability to update an OIDC identity provider can exploit CVE-2026-15943.