Open redirect in Sylius - CVE-2026-31819
Published: April 27, 2026
Sylius
Detailed vulnerability description
The vulnerability allows a remote attacker to redirect users to an untrusted site.
The vulnerability exists due to open redirect in CurrencySwitchController::switchAction(), ImpersonateUserController::impersonateAction(), and StorageBasedLocaleSwitcher::handle() when using the HTTP Referer header for redirects. A remote attacker can place a legitimate application link on an attacker-controlled page to redirect users to an untrusted site.
User interaction is required, and the admin impersonation endpoint is only reachable by an authenticated admin session while the other affected endpoints are public.