CVE-2022-0225: Keycloak - Stored XSS
- Cve: CVE-2022-0225
- Name: Keycloak - Stored XSS
- 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.
- Impact: Attackers can execute arbitrary scripts in the admin interface, potentially stealing cookies, session tokens, or hijacking admin sessions.
- Remediation: Update to the latest version of Keycloak where this vulnerability is fixed.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: admin_privileges
- Requirements: Attacker needs privileged access to the admin console
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.03072
- Epss percentile: 0.87889
- Assignee: [email protected]
- Published at: 2022-08-26T18:15:08Z
- Age in days: 1551
- Modified at: 2026-06-17T04:20:11Z
- Public exploits total: 1
- References total: 1
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-0225
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=2040268 | nvd | 2022-08-26 |
References
| Url | Source | Tags |
|---|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=2040268 | nvd | Exploit, Issue Tracking, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| redhat:keycloak | all versions | no | nvd | /v1/products/redhat/keycloak |
| redhat:single_sign-on | = 7.0 | no | nvd | /v1/products/redhat/single_sign-on |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| keycloak/keycloak | package, security_advisory | yes | /v1/repositories/keycloak/keycloak |
Index
- Repositories: 14
- Repositories high signal: 4
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-08-26
- Remote: yes
- Authentication required: yes
- Exposed hosts: 39460
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports