Keycloak-services: keycloak-services: manage-clients to arbitrary code execution through inline javascript policy import
- State
- Published
- Severity
- 9.1 Critical
- Published
- Nov 7, 2026
- Updated
- Nov 26, 2026
- Reserved
- Nov 3, 2026
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.
| Product | Versions |
|---|---|
| Red Hat build of Keycloak 26.4 Red Hat | 26.4.18-1 and later Not Affected |
| Red Hat build of Keycloak 26.4 Red Hat | 26.4-30 and later Not Affected |
| Red Hat build of Keycloak 26.4 Red Hat | 26.4-31 and later Not Affected |
| Red Hat build of Keycloak 26.4.18 Red Hat | |
| Red Hat build of Keycloak 26.4.18 Red Hat | |
| Red Hat Single Sign-On 7 Red Hat |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 9.1 Critical | redhat |
Weaknesses
- CWE-94 Improper Control of Generation of Code
References
- RHSA-2026:96037Vendor Advisory
- RHSA-2026:96038Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-120984Vulnerability Database
- RHBZ#2565599Issue Tracker
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.