Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.1

CVE-2026-120984: Keycloak lets client admins run code on server

CVE-2026-120984 · published today
Summary

The client management feature in Red Hat Build of Keycloak and Red Hat Single Sign-On 7 does not fully clear a temporary session value when a client is created or imported with authorization services turned on. Because of this, a user who already has permission to manage clients can upload a malicious JavaScript policy that will be executed whenever an authorization request occurs, allowing the attacker to run any code on the server. To protect your environment, restrict client‑management rights to trusted users, apply the latest patches from Red Hat, and monitor for unexpected policy uploads or authorization requests.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
red hat red hat build of keycloak All versions
red hat red hat single sign-on 7 All versions
Original advisory text
Keycloak-services: keycloak-services: manage-clients to arbitrary code execution through inline javascript policy import
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.
References
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker full control (estimated)
Severity
9.1 Critical
Type
CWE-94Code Injection
Timeline
Published7 Nov 2026
Updated7 Nov 2026
First seen7 Nov 2026
Sources
CVE-2026-120984 · MITRE
Track software like this
Free during beta