{"schemaVersion":3,"id":"CVE-2022-1274","aliases":["GHSA-m4fv-gm5m-4725"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-03-29T00:00:00.000Z","modified":"2024-08-02T23:55:24.548Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","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","exploitability":5.9,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00698,"percentile":0.52544,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00698},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00698,"percentile":0.52544}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00698,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00698,"percentile":0.52544}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)","description":"The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as \"<\", \">\", and \"&\" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/80.html"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"org.keycloak","product":"keycloak-services","name":"org.keycloak:keycloak-services","label":"keycloak-services","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-services","purlType":"maven","versions":[{"text":"< 20.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 20.0.5","eol":null,"hubHref":null},{"vendor":"redhat","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 20.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 20.0.5","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"keycloak","label":"Keycloak","category":"server-app"}},"hubHref":"/vendor/redhat/keycloak"},{"vendor":"redhat","product":"openshift_container_platform","name":"openshift container platform","label":"openshift_container_platform","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.9","noFixRecorded":false,"fixedIn":null},{"text":"4.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.9 | 4.10","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform"},{"vendor":"redhat","product":"single_sign-on","name":"single sign-on","label":"single_sign-on","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.6, < 7.6.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"na | ≥ 7.6, < 7.6.2","eol":null,"hubHref":"/vendor/redhat/single_sign-on"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2073157","label":"bugzilla.redhat.com/show_bug.cgi?id=2073157","hostname":"bugzilla.redhat.com","tags":["WEB","Issue Tracking","Vendor Advisory"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-m4fv-gm5m-4725","label":"github.com/keycloak/keycloak/security/advisories/GHSA-m4fv-gm5m-4725","hostname":"github.com","tags":["WEB","Third Party Advisory"]},{"url":"https://herolab.usd.de/security-advisories/usd-2021-0033/","label":"herolab.usd.de/security-advisories/usd-2021-0033/","hostname":"herolab.usd.de","tags":[]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1274","label":"nvd.nist.gov/vuln/detail/CVE-2022-1274","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/keycloak/keycloak/pull/16764","label":"github.com/keycloak/keycloak/pull/16764","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak/commit/fc3c61235fa30132123c17ed8702ff7b3a672fe9","label":"github.com/keycloak/keycloak/commit/fc3c61235fa30132123c17ed8702ff7b3a672fe9","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak","label":"github.com/keycloak/keycloak","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://herolab.usd.de/security-advisories/usd-2021-0033","label":"herolab.usd.de/security-advisories/usd-2021-0033","hostname":"herolab.usd.de","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["RHSA-2023:1043","RHSA-2023:1044","RHSA-2023:1045"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-03-29T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T23:55:24.548Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T19:06:07.407Z","stale":false,"partial":false}}