CVE-2022-0225
JSON

5.4medium

Stored Cross-Site Scripting (XSS) in Keycloak via groups dropdown

Severity
5.4medium CVSS:3.1 by NVD
Exploit likelihood
3.07% (higher than 88% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-755v-r4x4-qf7mGHSA-fqc7-5xxc-ph7r

Description

A flaw was found in Keycloak. This flaw allows a privileged attacker to use the malicious payload as the group name while creating a new group from the admin console, leading to a stored Cross-site scripting (XSS) attack.

Affected

Product or packageVersionsReported by
keycloakNot-KnownCVE List
org.keycloak:keycloak-core (Maven)before 20.0.0, up to 16.1.0GitHub Advisory Database
redhat keycloakNot specifiedNVD
redhat single_sign-on7.0NVD

All scores

GitHubmedium rating
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

What each source says

CVE List

A flaw was found in Keycloak. This flaw allows a privileged attacker to use the malicious payload as the group name while creating a new group from the admin console, leading to a stored Cross-site scripting (XSS) attack.

GitHub Advisory Database
Summary

A Stored XSS vulnerability was reported in the Keycloak Security mailing list, affecting all the versions of Keycloak, including the latest release (16.0.1). The vulnerability allows a privileged attacker to execute malicious scripts in the admin console, abusing of the groups' dropdown functionality.

Impact

Successful attacks of this vulnerability can result a privileged attacker to load a XSS script, and steal data from other users. The impact can be considered moderate to low, considering privileged credentials are required.

References
  • Please refer to the Keycloak Security mailing list for more information.
NVD (es)

Se ha encontrado un fallo en Keycloak. Este fallo permite a un atacante privilegiado usar la carga útil maliciosa como nombre del grupo mientras es creado un nuevo grupo desde la consola de administración, conllevando a un ataque de tipo Cross-site scripting (XSS) almacenado.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-0225 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-755v-r4x4-qf7m changed 2026-07-16CC-BY-4.0
GitHub Advisory DatabaseGHSA-fqc7-5xxc-ph7r changed 2026-07-16CC-BY-4.0
NVDCVE-2022-0225 changed 2026-06-17Public domain