#VU127135 Incorrect Regular Expression in authentik - CVE-2024-52289
Published: November 21, 2024 / Updated: April 23, 2026
authentik
Authentik Security Inc
Description
The vulnerability allows a remote attacker to redirect OAuth2 flows to an attacker-controlled domain.
The vulnerability exists due to incorrect regular expression handling in the OAuth2 provider redirect URI validation when processing redirect_uri values. A remote attacker can register a crafted domain or supply a specially crafted redirect URI to redirect OAuth2 flows to an attacker-controlled domain.
When no redirect URIs are configured, the first received redirect_uri value is automatically accepted without escaping regular expression metacharacters.