---
id: CVE-2023-49097
aliases:
  - GHSA-2wmj-46rj-qm2w
title: ZITADEL Account Takeover via Malicious Host Header Injection
summary: ZITADEL Account Takeover via Malicious Host Header Injection
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'
vendor: zitadel
product: github.com/zitadel/zitadel
ecosystem: go
affected:
  - 'github.com/zitadel/zitadel >= 2.39.0, < 2.39.9'
  - 'github.com/zitadel/zitadel >= 2.40.0, < 2.40.10'
  - 'github.com/zitadel/zitadel >= 2.41.0, < 2.41.6'
patched:
  - github.com/zitadel/zitadel 2.39.9
  - github.com/zitadel/zitadel 2.40.10
  - github.com/zitadel/zitadel 2.41.6
published: '2023-11-29'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:49:58.729755726Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-2wmj-46rj-qm2w'
references:
  - url: 'https://github.com/zitadel/zitadel/security/advisories/GHSA-2wmj-46rj-qm2w'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-49097'
  - url: 'https://github.com/zitadel/zitadel'
tags:
  - osv
  - go
epss: 0.00767
epssPercentile: 0.5406
ingestedAt: '2026-09-12T03:13:01.746Z'
---

## Overview

### Impact

ZITADEL uses the notification triggering requests Forwarded or X-Forwarded-Host header to build the button link sent in emails for confirming a password reset with the emailed code. If this header is overwritten and a user clicks the link to a malicious site in the email, the secret code can be retrieved and used to reset the users password and take over his account.

Accounts with MFA or Passwordless enabled can not be taken over by this attack.

### Patches

The patched ZITADEL versions verify, that the auth requests instance is retrieved by the requests original domain (from the Forwarded or X-Forwarded-Host headers if available). If the instance can't be found using the original host or the auth request can't be found within that instance, ZITADEL throws an error.

2.x versions are fixed on >= [2.41.6](https://github.com/zitadel/zitadel/releases/tag/v2.41.6)
2.40.x versions are fixed on >= [2.40.10](https://github.com/zitadel/zitadel/releases/tag/v2.40.10)
2.39.x versions are fixed on >= [2.39.9](https://github.com/zitadel/zitadel/releases/tag/v2.39.9)

The vulnerablility was introduced with 2.39.0.

### Workarounds

A ZITADEL fronting proxy can be configured to delete all Forwarded and X-Forwarded-Host header values before sending requests to ZITADEL self-hosted environments.

### References

None

### Questions

If you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)


## Affected packages

- `github.com/zitadel/zitadel >= 2.39.0, < 2.39.9`
- `github.com/zitadel/zitadel >= 2.40.0, < 2.40.10`
- `github.com/zitadel/zitadel >= 2.41.0, < 2.41.6`

## Remediation

Upgrade to a patched release:

- `github.com/zitadel/zitadel 2.39.9`
- `github.com/zitadel/zitadel 2.40.10`
- `github.com/zitadel/zitadel 2.41.6`
