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 package | Versions | Reported by |
|---|---|---|
| keycloak | Not-Known | CVE List |
| org.keycloak:keycloak-core (Maven) | before 20.0.0, up to 16.1.0 | GitHub Advisory Database |
| redhat keycloak | Not specified | NVD |
| redhat single_sign-on | 7.0 | NVD |
All scores
| GitHub | medium rating | |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS: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
| https://bugzilla.redhat.com/show_bug.cgi?id=2040268 | exploit, issue-tracking, vendor-advisory, web | |
| https://github.com/keycloak/keycloak/security/advisories/GHSA-755v-r4x4-qf7m | broken-link, web | |
| https://github.com/keycloak/keycloak | package | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-0225 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-0225 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-755v-r4x4-qf7m changed 2026-07-16 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-fqc7-5xxc-ph7r changed 2026-07-16 | CC-BY-4.0 |
| NVD | CVE-2022-0225 changed 2026-06-17 | Public domain |