CVE-2024-52289: authentik has an insecure default configuration for OAuth2 Redirect URIs
CVE-2024-52289 affects 143 listed versions of authentik in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
authentik
143 of 214 listed versions are affected. Fixed in 2024.10.3, 2024.8.5. The newest release, 2026.8.7, is not affected.
2024.10.2 2024.10.1 2024.10.0 2024.8.4 2024.8.3 2024.8.2 2024.8.1 2024.8.0 2024.6.5 2024.6.4 2024.6.3 2024.6.2 2024.6.1 2024.6.0 2024.4.4 2024.4.3 2024.4.2 2024.4.1 2024.4.0 2024.2.4 2024.2.3 2024.2.2 2024.2.1 2024.2.0 2023.10.7 2023.10.6 2023.10.5 2023.10.4 2023.10.3 2023.10.2 2023.10.1 2023.10.0 2023.8.7 2023.8.6 2023.8.5 2023.8.4 2023.8.3 2023.8.2 2023.8.1 2023.8.0 2023.6.2 2023.6.1 2023.6.0 2023.5.6 2023.5.5 2023.5.4 2023.5.3 2023.5.2 2023.5.1 2023.5.0 2023.4.3 2023.4.2 2023.4.1 2023.4.0 2023.3.1 2023.3.0 2023.2.3 2023.2.2 2023.2.1 2023.2.0 and 83 more
What it is
authentik is an open-source identity provider. Redirect URIs in the OAuth2 provider in authentik are checked by RegEx comparison. When no Redirect URIs are configured in a provider, authentik will automatically use the first redirect_uri value received as an allowed redirect URI, without escaping characters that have a special meaning in RegEx. Similarly, the documentation did not take this into consideration either. Given a provider with the Redirect URIs set to https://foo.example.com, an attacker can register a domain fooaexample.com, and it will correctly pass validation. authentik 2024.8.5 and 2024.10.3 fix this issue. As a workaround, When configuring OAuth2 providers, make sure to escape any wildcard characters that are not intended to function as a wildcard, for example replace `.` with `\.`.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by GitHub on 21 November 2024. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2024-52289 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.