{"id":"CVE-2022-1274","aliases":["CVE-2022-1274","GHSA-m4fv-gm5m-4725"],"related":[],"kind":"vulnerability","state":"published","title":"HTML Injection in Keycloak Admin REST API","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"The `execute-actions-email` endpoint of the Keycloak Admin REST API allows a malicious actor to send emails containing phishing links to Keycloak users.","format":"markdown","source":"ghsa"}],"published":"2023-03-01T17:58:01.000Z","modified":"2026-07-16T03:59:27.795Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-80"],"affected":[{"ranges":[{"version":"unknown","status":"affected"}],"product":"keycloak","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"20.0.5"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"20.0.5"}],"vendor":"redhat","product":"keycloak","cpe":"cpe:2.3:a:redhat:keycloak:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"7.6","fixed":"7.6.2"}],"vendor":"redhat","product":"single_sign-on","cpe":"cpe:2.3:a:redhat:single_sign-on:-:*:*:*:text-only:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"4.9"},{"status":"affected","version":"4.10"}],"vendor":"redhat","product":"openshift_container_platform","cpe":"cpe:2.3:a:redhat:openshift_container_platform:4.9:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2073157","tags":["issue-tracking","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-m4fv-gm5m-4725","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://herolab.usd.de/security-advisories/usd-2021-0033/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1274","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/pull/16764","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/commit/fc3c61235fa30132123c17ed8702ff7b3a672fe9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]},{"url":"https://herolab.usd.de/security-advisories/usd-2021-0033","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-1274","url":"https://www.cve.org/CVERecord?id=CVE-2022-1274","licence":"CVE Terms of Use","modified":"2024-08-02T23:55:24.548Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m4fv-gm5m-4725","url":"https://github.com/advisories/GHSA-m4fv-gm5m-4725","licence":"CC-BY-4.0","modified":"2026-07-16T03:59:27.795Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-1274","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1274","licence":"Public domain","modified":"2026-06-17T04:22:07.933Z"}],"updatedAt":"2026-11-25T22:58:19.017Z","epss":{"score":0.00692,"percentile":0.54141,"date":"2026-12-01T12:00:22.000Z"}}