# CVE-2022-1274: HTML Injection in Keycloak Admin REST API

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Published: 2023-03-01T17:58:01.000Z
- Modified: 2026-07-16T03:59:27.795Z
- Also known as: GHSA-m4fv-gm5m-4725
- Weaknesses: CWE-79, CWE-80
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- keycloak: unknown
- org.keycloak:keycloak-services (Maven): before 20.0.5
- redhat keycloak: before 20.0.5
- redhat single_sign-on: from 7.6 before 7.6.2
- redhat openshift_container_platform: 4.9; 4.10

## Every score

- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## 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/>
- <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)
- <https://herolab.usd.de/security-advisories/usd-2021-0033> (web)

## Sources

- CVE List: [CVE-2022-1274](https://www.cve.org/CVERecord?id=CVE-2022-1274), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-m4fv-gm5m-4725](https://github.com/advisories/GHSA-m4fv-gm5m-4725), CC-BY-4.0, modified 2026-07-16
- NVD: [CVE-2022-1274](https://nvd.nist.gov/vuln/detail/CVE-2022-1274), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-1274 · Whole record: https://cve.day/CVE-2022-1274.json · Rebuilt by cve.day 2026-11-25T22:58:19.017Z
