# ZITADEL has improper HTML sanitization in emails and Console UI

Advisory record · `GHSA-v333-7h2p-5fhv`

- **Identifiers:** `GHSA-v333-7h2p-5fhv` · `CVE-2024-41953` · `GO-2024-3015`
- **State:** Confirmed
- **Severity:** CVSS 4.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 31 Jul 2024
- **Updated:** 9 Jul 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 31 Jul 2024, 20:59 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `github.com/zitadel/zitadel` (Go): affected `>=1.80.1, <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 || <0.0.0-20240731122110-189505c80fa6 || >=0.0.0, <1.80.0-v2.20.0.20240731122110-189505c80fa6`; 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`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 4.3 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0065, the 52nd percentile, on 23 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 31 Jul 2024. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-v333-7h2p-5fhv](https://github.com/advisories/GHSA-v333-7h2p-5fhv)
- [OSV: GHSA-v333-7h2p-5fhv](https://osv.dev/vulnerability/GHSA-v333-7h2p-5fhv)
- <https://github.com/zitadel/zitadel/security/advisories/GHSA-v333-7h2p-5fhv>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41953>
- <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://pkg.go.dev/vuln/GO-2024-3015>
- <https://github.com/zitadel/zitadel/releases/tag/v2.58.1>
- <https://github.com/zitadel/zitadel/releases/tag/v2.57.1>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-v333-7h2p-5fhv>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-v333-7h2p-5fhv/>. Everything for agents: <https://agentprime.io/llms.txt>.
