CVE-2026-15943

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

Published Jul 17, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Based on the description, the flaw lies in the keycloak‑services component, where validation of masked client secrets during an OIDC identity‑provider update is insufficient. When a delegated administrator changes the token URL using the sentinel value that masks the real secret, Keycloak mistakenly reuses the existing secret. It is inferred that this defect permits an attacker to set a malicious token URL, causing the real secret to be exposed or captured, and then use the compromised secret to forge authentication tokens or impersonate the identity provider, leading to unauthorized access to protected resources.

Affected Systems

Red Hat Build of Keycloak (various versions), Red Hat Data Grid 8, Red Hat JBoss Enterprise Application Platform Expansion Pack, and Red Hat Single Sign‑On 7. The flaw applies to any installation of these products where OIDC identity‑provider updates can be performed by delegated administrators.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate risk, and the EPSS score of less than 1% suggests a low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that exploitation requires the attacker to have delegated administrative privileges to edit an OIDC identity provider and the ability to modify the token URL to a malicious endpoint. Once the secret is captured, the attacker can impersonate the identity provider to gain unauthorized authentication. The attack path is confined to the administrative scope of the application and does not permit arbitrary code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest vendor patch for Keycloak‑services that corrects the validation of masked client secrets during OIDC identity‑provider updates.
  • If a patch is unavailable, restrict or remove delegated administrative permissions for OIDC IDP management, or force a hard reset of the client‑related fields.
  • Implement additional input validation on the token URL field during IDP updates to reject malformed or suspicious URLs, ensuring the backend cannot post the malicious value and capture the secret.

Generated by OpenCVE AI on July 31, 2026 at 00:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak: cpe:/a:redhat:build_keycloak:26.6::el9
References
Type Values Removed Values Added
First Time appeared Redhat build Of Keycloak
Redhat data Grid
Redhat jboss Enterprise Application Platform Expansion Pack
Redhat single Sign On
Vendors & Products Redhat build Of Keycloak
Redhat data Grid
Redhat jboss Enterprise Application Platform Expansion Pack
Redhat single Sign On
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Keycloak-services: keycloak-services: oidc idp update reuses masked client secret after token url change
First Time appeared Redhat
Redhat build Keycloak
Redhat jboss Data Grid
Redhat jbosseapxp
Redhat red Hat Single Sign On
Weaknesses CWE-1288
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:jboss_data_grid:8
cpe:/a:redhat:jbosseapxp
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat jboss Data Grid
Redhat jbosseapxp
Redhat red Hat Single Sign On
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N'}

Weaknesses
  • CWE-1288

    Improper Validation of Consistency within Input

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 6, 2026, 5:34 PM
Reserved
Jul 16, 2026, 9:20 AM
Status
Modified
Published
Jul 17, 2026, 12:17 PM
Modified
Nov 6, 2026, 6:18 PM
Severity
Moderate
Public date
Jul 16, 2026, 6:27 AM