# CVE-2024-29891: ZITADEL Improper Content-Type Validation Leads to Account Takeover via Stored XSS + CSP Bypass

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/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.76%, higher than 56% of CVEs (2026-12-01)
- Published: 2024-03-27T19:18:08.078Z
- Modified: 2026-09-10T03:50:10.594Z
- Also known as: GHSA-hr5w-cwwq-2v4m, GO-2024-2665
- Weaknesses: CWE-79, CWE-434
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

ZITADEL users can upload their own avatar image and various image types are allowed. Due to a missing check, an attacker could upload HTML and pretend it is an image to gain access to the victim's account in certain scenarios. A possible victim would need to directly open the supposed image in the browser, where a session in ZITADEL needs to be active for this exploit to work. The exploit could only be reproduced if the victim was using Firefox. Chrome, Safari as well as Edge did not execute the code. This vulnerability is fixed in 2.48.3, 2.47.8, 2.46.5, 2.45.5, 2.44.7, 2.43.11, and 2.42.17.

(As written by CVE List.)

## Affected

- zitadel zitadel: < 2.42.17; >= 2.43.0, < 2.43.11; >= 2.44.0, < 2.44.7; >= 2.45.0, < 2.45.5; >= 2.46.0, < 2.46.5; >= 2.47.0, < 2.47.8; >= 2.48.0, < 2.48.3; before 2.42.17; from 2.43.0 before 2.43.11; from 2.44.0 before 2.44.7; from 2.45.0 before 2.45.5; from 2.46.0 before 2.46.5; and 2 more
- github.com/zitadel/zitadel (Go): before 2.42.17; from 2.43.0 before 2.43.11; from 2.44.0 before 2.44.7; from 2.45.0 before 2.45.5; from 2.46.0 before 2.46.5; from 2.47.0 before 2.47.8; from 2.48.0 before 2.48.3; all versions

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`

## References

- <https://github.com/zitadel/zitadel/security/advisories/GHSA-hr5w-cwwq-2v4m> (advisory, vendor-advisory, web)
- <https://github.com/zitadel/zitadel/releases/tag/v2.42.17> (release-notes, web)
- <https://github.com/zitadel/zitadel/releases/tag/v2.43.11> (release-notes, web)
- <https://github.com/zitadel/zitadel/releases/tag/v2.44.7> (release-notes, web)
- <https://github.com/zitadel/zitadel/releases/tag/v2.45.5> (release-notes, web)
- <https://github.com/zitadel/zitadel/releases/tag/v2.46.5> (release-notes, web)
- <https://github.com/zitadel/zitadel/releases/tag/v2.47.8> (release-notes, web)
- <https://github.com/zitadel/zitadel/releases/tag/v2.48.3> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-29891> (advisory)
- <https://github.com/zitadel/zitadel> (package)

## Sources

- CVE List: [CVE-2024-29891](https://www.cve.org/CVERecord?id=CVE-2024-29891), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-hr5w-cwwq-2v4m](https://github.com/advisories/GHSA-hr5w-cwwq-2v4m), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2665](https://pkg.go.dev/vuln/GO-2024-2665), CC-BY-4.0, modified 2024-07-09
- NVD: [CVE-2024-29891](https://nvd.nist.gov/vuln/detail/CVE-2024-29891), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-29891 · Whole record: https://cve.day/CVE-2024-29891.json · Rebuilt by cve.day 2026-11-25T22:58:38.027Z
