{"id":"CVE-2022-1274","aliases":["GHSA-m4fv-gm5m-4725"],"url":"https://o3.security/vulnerability/CVE-2022-1274","summary":"HTML Injection in Keycloak Admin REST API","details":"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":"2023-03-29T00:00:00Z","modified":"2026-08-12T03:51:19.366369733Z","cvss":{"score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-services","fixedVersion":"20.0.5"}],"fix":{"url":"https://github.com/keycloak/keycloak/pull/16764","label":"keycloak/keycloak#16764"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1274.json"},{"type":"ADVISORY","url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-m4fv-gm5m-4725"},{"type":"ADVISORY","url":"https://herolab.usd.de/security-advisories/usd-2021-0033/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1274"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2073157"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/pull/16764"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/commit/fc3c61235fa30132123c17ed8702ff7b3a672fe9"},{"type":"PACKAGE","url":"https://github.com/keycloak/keycloak"},{"type":"WEB","url":"https://herolab.usd.de/security-advisories/usd-2021-0033"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:19.366369733Z"}}