Code injection in Keycloak client import via JavaScript policy
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-94.
Summary
Red Hat Build of Keycloak and Red Hat Single Sign-On 7 are affected. Keycloak does not clear an internal session attribute when a client is created or imported with authorization services enabled (CWE-94). An authenticated attacker with client management permissions can upload a malicious JavaScript policy that runs on the server during an authorization request, allowing arbitrary code execution.
Written with Claude Haiku 5.5 from the sources below · 2026-11-07
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
The sources list no fixed version for Red Hat Build of Keycloak. The sources list no fixed version for Red Hat Single Sign-On 7. Red Hat's plan for both products is none available.
Written with Claude Haiku 5.5 from the sources below · 2026-11-07
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Build of Keycloak | Affected | No fix yet |
| Red Hat Single Sign-On 7 | Affected | No fix yet |
Timeline
- 2026-11-07 Threatist record created from CVE-2026-120984
- 2026-11-07 Alias added: GHSA-2539-2x8g-x597
- 2026-11-07 Affected versions changed · Red Hat
- 2026-11-07 CVSS score added · Red Hat
References
More Red Hat vulnerabilities
- TI-2019-15875 Protection mechanism failure in Jenkins Pipeline: Groovy Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-15874 Protection mechanism failure in Jenkins Script Security Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2019-05363 Code injection in Elastic Kibana KEVCVSS 3.1CRITICAL 10.0
- TI-2019-03949 Out-of-bounds write in ESXi and Horizon DaaS KEVCVSS 3.1CRITICAL 9.8
- TI-2018-16080 A code execution vulnerability exists in the Stapler web framework used by Jenkins 2.153… KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-120984 · CVE Program
- CVE-2026-120984 · NVD
- GHSA-2539-2x8g-x597 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-120984 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences