Description
A flaw was found in the Keycloak server's client management component. When a client is created or imported with authorization services enabled, the system fails to properly clear an internal session attribute used during the setup process. This allows an authenticated attacker with client management permissions to bypass security controls and upload a malicious JavaScript policy, which is then executed on the server when an authorization request is made. Successful exploitation could allow the attacker to run arbitrary code on the server, potentially compromising the entire system.
Published: 2026-11-07
Score: 9.1 Critical
EPSS: n/a
KEV: No
Impact: Arbitrary code execution on the Keycloak server via a malicious JavaScript policy executed during authorization requests
Action: Immediate Patch
AI Analysis

Impact

A flaw in Keycloak's client management component causes an internal session attribute to remain uncleared during the import of clients with authorization services enabled. An authenticated user with client‑management permissions can bypass security controls to upload a malicious JavaScript policy, which the server then executes when an authorization request is processed. Successful exploitation permits arbitrary code execution, potentially compromising the entire server.

Affected Systems

The vulnerability affects Red Hat’s Build of Keycloak and Red Hat Single Sign‑On 7. Specific vulnerable versions are not enumerated in the available data, so any release built from these vendor products is potentially impacted until a patch is applied.

Risk and Exploitability

The vulnerability has a CVSS score of 9.1, indicating critical severity, but its EPSS score is not available and it is not listed in CISA KEV. The attack requires the attacker to be authenticated and have client‑management privileges, allowing them to create or import a client. The limited prerequisites reduce the attack surface, but the impact remains severe if the conditions are met. The exploitation path involves adding a malicious JavaScript policy that the server executes during normal authorization handling.

Generated by OpenCVE AI on November 7, 2026 at 14:20 UTC.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.


OpenCVE Recommended Actions

  • Apply the official Red Hat patch or upgrade to the latest Build of Keycloak that contains the fix for CVE‑2026‑120984.
  • Limit client‑management permissions so that only trusted administrators can create or import clients, and remove the authorization‑services feature if it is not required.
  • Disable or tightly restrict the import of JavaScript policies, or enforce policy signing/verification before execution.

Generated by OpenCVE AI on November 7, 2026 at 14:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 07 Nov 2026 13:30:00 +0000

Type Values Removed Values Added
Description A flaw was found in the Keycloak server's client management component. When a client is created or imported with authorization services enabled, the system fails to properly clear an internal session attribute used during the setup process. This allows an authenticated attacker with client management permissions to bypass security controls and upload a malicious JavaScript policy, which is then executed on the server when an authorization request is made. Successful exploitation could allow the attacker to run arbitrary code on the server, potentially compromising the entire system.
Title Keycloak-services: keycloak-services: manage-clients to arbitrary code execution through inline javascript policy import
First Time appeared Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
Weaknesses CWE-94
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
References
Metrics cvssV3_1

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


Subscriptions

Redhat Build Keycloak Red Hat Single Sign On
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-11-07T13:22:00.998Z

Reserved: 2026-11-03T05:21:27.103Z

Link: CVE-2026-120984

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-07T14:17:01.580

Modified: 2026-11-07T14:17:01.717

Link: CVE-2026-120984

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-07T14:30:09Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')