Skip to content

Keycloak

Keycloak-services: keycloak-services: manage-clients to arbitrary code execution through inline javascript policy import

CVE-2026-120984Published 7 Nov 2026, 13:22 UTC

Real-world risk

1.9/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

9.1

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from redhat)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
KeycloakWidespreadnot stated—

What to do

Check the vendor advisory in the references below for fixed versions and workarounds.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededHighAdmin or equivalentFrom the CVSS vector0.20
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T3: Public proof of concept (× 0.95)

A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit

  • Public proof of concept on GitHub

EPSS 0.7% chance of exploitation in 30 days (percentile 55), as of 2026-12-06.

The arithmetic
  1. Prerequisites multiplied together0.200
  2. Threat T3: Public proof of concept0.950
  3. 10 × impact 1 × prerequisites 0.2 × threat 0.951.900
  4. Rounded to one decimal between 0.1 and 101.9

How the score works

Exploitation and evidence timeline

  1. 7 Nov 2026 Published
  2. 3 Dec 2026 Public proof of concept on GitHub first seen
  3. 3 Dec 2026 Risk 1.9 (cvss fallback)

Weakness

CWE-94

References

Get alerts for Keycloak

Free email or text alerts when a vulnerability in Keycloak reaches risk 8 or higher. Nothing else.