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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.3
- **CVSS:** 4.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.05% (percentile 64, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-v333-7h2p-5fhv, GO-2024-3015
- **Published:** 2024-07-31T16:42:33.125Z
- **Modified:** 2026-06-17T07:48:31.153Z

## Who should check

- Projects that depend on Go package github.com/zitadel/zitadel (\>= 1.80.1, \< 2.52.3)
- Anyone running zitadel \>= 2.52.0, \< 2.52.3; \>= 2.53.0, \< 2.53.9; \>= 2.54.0, \< 2.54.8; \>= 2.55.0, \< 2.55.5; \>= 2.56.0, \< 2.56.2; \>= 2.57.0, \< 2.57.1; \>= 2.58.0, \< 2.58.1

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

## Affected and fixed versions

- Go `github.com/zitadel/zitadel`: affected \>= 1.80.1, \< 2.52.3; fixed 2.52.3, 2.53.9, 2.54.8, 2.55.5, 2.56.2, 2.57.1, 2.58.1, 0.0.0-20240731122110-189505c80fa6, 1.80.0-v2.20.0.20240731122110-189505c80fa6 (osv)
- zitadel: \>= 2.52.0, \< 2.52.3; \>= 2.53.0, \< 2.53.9; \>= 2.54.0, \< 2.54.8; \>= 2.55.0, \< 2.55.5; \>= 2.56.0, \< 2.56.2; \>= 2.57.0, \< 2.57.1; \>= 2.58.0, \< 2.58.1 (cvelist)

## Mitigation

- Upgrade github.com/zitadel/zitadel to one of 2.52.3, 2.53.9, 2.54.8, 2.55.5, 2.56.2, 2.57.1, 2.58.1, 0.0.0-20240731122110-189505c80fa6, 1.80.0-v2.20.0.20240731122110-189505c80fa6 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-41953. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-41953.md
Affected: github.com/zitadel/zitadel >= 1.80.1, < 2.52.3
Fixed in: 2.52.3, 2.53.9, 2.54.8, 2.55.5, 2.56.2, 2.57.1, 2.58.1, 0.0.0-20240731122110-189505c80fa6, 1.80.0-v2.20.0.20240731122110-189505c80fa6

Steps:
1. Search this machine and project for github.com/zitadel/zitadel (Go), zitadel: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-41953 being exploited?

There is no confirmed exploitation: CVE-2024-41953 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.05% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-41953?

Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-41953?

github.com/zitadel/zitadel \>= 1.80.1, \< 2.52.3.

### Is there a fix for CVE-2024-41953?

Yes. Fixed in 2.52.3, 2.53.9, 2.54.8, 2.55.5, 2.56.2, 2.57.1, 2.58.1, 0.0.0-20240731122110-189505c80fa6, 1.80.0-v2.20.0.20240731122110-189505c80fa6. Upgrade github.com/zitadel/zitadel to one of 2.52.3, 2.53.9, 2.54.8, 2.55.5, 2.56.2, 2.57.1, 2.58.1, 0.0.0-20240731122110-189505c80fa6, 1.80.0-v2.20.0.20240731122110-189505c80fa6 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-41953?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zitadel/zitadel/security/advisories/GHSA-v333-7h2p-5fhv>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-41953>
- patch: <https://github.com/zitadel/zitadel/commit/0e1f99e987b5851caec45a72660fe9f67e425747>
- patch: <https://github.com/zitadel/zitadel/commit/38da602ee1cfc35c0d7918c298fbfc3f3674133b>
- patch: <https://github.com/zitadel/zitadel/commit/4b59cac67bb89c1f3f84a2041dd273d11151d29f>
- patch: <https://github.com/zitadel/zitadel/commit/c1a3fc72dde16e987d8a09aa291e7c2edfc928f7>
- patch: <https://github.com/zitadel/zitadel/commit/c353f82f89c6982c0888c6763363296cf4263cb2>
- patch: <https://github.com/zitadel/zitadel/commit/d04ac6df8f2f0243e649b802a8bfa6176cef0923>
- patch: <https://github.com/zitadel/zitadel/commit/f846616a3f022e88e3ea8cea05d3254ad86f1615>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.52.3>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.53.9>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.54.8>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.55.5>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.56.2>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.57.1>
- other: <https://github.com/zitadel/zitadel/releases/tag/v2.58.1>
- other: <https://pkg.go.dev/vuln/GO-2024-3015>
- other: <https://github.com/zitadel/zitadel>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-41953>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-v333-7h2p-5fhv> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-3015> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-41953> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-41953>
