CVE-2022-1274: Keycloak - Stored XSS
- Cve: CVE-2022-1274
- Name: Keycloak - Stored XSS
- Description: A flaw was found in Keycloak in the execute-actions-email endpoint. This issue allows arbitrary HTML to be injected into emails sent to Keycloak users and can be misused to perform phishing or other attacks against users.
- Impact: Attackers can inject malicious HTML into emails, leading to phishing attacks or user deception.
- Remediation: Apply the latest security patches or update to the latest version of Keycloak.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: logged_in
- Requirements: Attacker needs access to email sending functionality
- 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.00692
- Epss percentile: 0.53624
- Assignee: [email protected]
- Published at: 2023-03-29T21:15:07Z
- Age in days: 1336
- Modified at: 2026-06-17T04:22:07Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-1274
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-80 | Improper Neutralization of Script-Related HTML Tags in a Web Page |
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/shoucheng3/keycloak__keycloak_CVE-2022-1274_20-0-3 | poc-in-github | 2025-08-18 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=2073157 | Issue Tracking, Vendor Advisory |
| https://github.com/keycloak/keycloak/security/advisories/GHSA-m4fv-gm5m-4725 | Third Party Advisory |
| https://herolab.usd.de/security-advisories/usd-2021-0033/ |
Products
Same in every row:
- Sources: nvd
| Product | Affected | Platform bound | Url |
|---|---|---|---|
| redhat:keycloak | < 20.0.5 | no | /v1/products/redhat/keycloak |
| redhat:openshift_container_platform | = 4.10, = 4.9 | yes | /v1/products/redhat/openshift_container_platform |
| redhat:single_sign-on | all versions; >= 7.6, < 7.6.2 | no | /v1/products/redhat/single_sign-on |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| keycloak/keycloak | commit, fix, package, pull, security_advisory | yes | /v1/repositories/keycloak/keycloak |
Index
- Repositories: 7
- Repositories high signal: 3
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-08-18
- 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