CVE-2022-1274
MEDIUM 5.4CVSS 3.1HTML Injection in Keycloak Admin REST API
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.
- Published
- 29 Mar 2023
- Last modified
- 16 Jul 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-79CWE-80
- Also known as
- GHSA-m4fv-gm5m-4725
- Sources
- NVDJSONOSV GHSA-m4fv-gm5m-4725JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | redhat | keycloakcpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:* |
< 20.0.5 | 20.0.5 |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:* |
(no version) | |
| NVD | redhat | single_sign-oncpe:2.3:a:redhat:single_sign-on:*:*:*:*:*:*:*:* |
>= 7.6, < 7.6.2 | 7.6.2 |
| NVD | redhat | openshift_container_platformcpe:2.3:a:redhat:openshift_container_platform:4.9:*:*:*:*:*:*:* |
= 4.9 | |
| NVD | redhat | openshift_container_platformcpe:2.3:a:redhat:openshift_container_platform:4.10:*:*:*:*:*:*:* |
= 4.10 | |
| OSV | Maven | org.keycloak:keycloak-services | < 20.0.5 | 20.0.5 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2073157 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/keycloak/keycloak/security/advisories/GHSA-m4fv-gm5m-4725 · Third Party Advisory, WEB
- https://herolab.usd.de/security-advisories/usd-2021-0033/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-1274 · ADVISORY
- https://github.com/keycloak/keycloak/pull/16764 · WEB
- https://github.com/keycloak/keycloak/commit/fc3c61235fa30132123c17ed8702ff7b3a672fe9 · WEB
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 29 Mar 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Mar 2023)