CVE-2022-1274
5.4medium
HTML Injection in Keycloak Admin REST API
- Severity
- 5.4medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.69% (higher than 54% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
- Also known as
- GHSA-m4fv-gm5m-4725
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| keycloak | unknown | CVE List |
| org.keycloak:keycloak-services (Maven) | before 20.0.5 | GitHub Advisory Database |
| redhat keycloak | before 20.0.5 | NVD |
| redhat single_sign-on | from 7.6 before 7.6.2 | NVD |
| redhat openshift_container_platform | 4.9, 4.10 | NVD |
All scores
| 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 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.
GitHub Advisory Database
The execute-actions-email endpoint of the Keycloak Admin REST API allows a malicious actor to send emails containing phishing links to Keycloak users.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-1274 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m4fv-gm5m-4725 changed 2026-07-16 | CC-BY-4.0 |
| NVD | CVE-2022-1274 changed 2026-06-17 | Public domain |