Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/zitadel/zitadel
  4. ›
  5. CVE-2024-41953

CVE-2024-41953: ZITADEL has improper HTML sanitization in emails and Console UI

July 31, 2024

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.

During investigation of this issue a related issue was found and mitigated, where on the user’s detail page the username was 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.

References

  • github.com/advisories/GHSA-v333-7h2p-5fhv
  • github.com/zitadel/zitadel
  • github.com/zitadel/zitadel/commit/0e1f99e987b5851caec45a72660fe9f67e425747
  • github.com/zitadel/zitadel/commit/38da602ee1cfc35c0d7918c298fbfc3f3674133b
  • github.com/zitadel/zitadel/commit/4b59cac67bb89c1f3f84a2041dd273d11151d29f
  • github.com/zitadel/zitadel/commit/c1a3fc72dde16e987d8a09aa291e7c2edfc928f7
  • github.com/zitadel/zitadel/commit/c353f82f89c6982c0888c6763363296cf4263cb2
  • github.com/zitadel/zitadel/commit/d04ac6df8f2f0243e649b802a8bfa6176cef0923
  • github.com/zitadel/zitadel/commit/f846616a3f022e88e3ea8cea05d3254ad86f1615
  • github.com/zitadel/zitadel/releases/tag/v2.52.3
  • github.com/zitadel/zitadel/releases/tag/v2.53.9
  • github.com/zitadel/zitadel/releases/tag/v2.54.8
  • github.com/zitadel/zitadel/releases/tag/v2.55.5
  • github.com/zitadel/zitadel/releases/tag/v2.56.2
  • github.com/zitadel/zitadel/releases/tag/v2.57.1
  • github.com/zitadel/zitadel/releases/tag/v2.58.1
  • github.com/zitadel/zitadel/security/advisories/GHSA-v333-7h2p-5fhv
  • nvd.nist.gov/vuln/detail/CVE-2024-41953

Code Behaviors & Features

Detect and mitigate CVE-2024-41953 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.52.0 before 2.52.3, all versions starting from 2.53.0 before 2.53.9, all versions starting from 2.54.0 before 2.54.8, all versions starting from 2.55.0 before 2.55.5, all versions starting from 2.56.0 before 2.56.2, all versions starting from 2.57.0 before 2.57.1, version 2.57.0, all versions starting from 2.58.0 before 2.58.1, version 2.58.0

Fixed versions

  • 2.52.3
  • 2.53.9
  • 2.54.8
  • 2.55.5
  • 2.56.2
  • 2.57.1
  • 2.58.1

Solution

Upgrade to versions 2.52.3, 2.53.9, 2.54.8, 2.55.5, 2.56.2, 2.57.1, 2.58.1 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/zitadel/zitadel/CVE-2024-41953.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:39 +0000.