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

Read the record on cve.org

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.

ProductVersions
Red Hat build of Keycloak 26.4 Red Hat26.4.18-1 and later Not Affected
Red Hat build of Keycloak 26.4 Red Hat26.4-30 and later Not Affected
Red Hat build of Keycloak 26.4 Red Hat26.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

Weaknesses

  • CWE-94 Improper Control of Generation of Code

References

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.