Open redirect in Symfony - CVE-2026-135802
Published: December 1, 2026
Vulnerability details
The vulnerability allows a remote attacker to make generated links, form actions, redirects, and asset URLs point to an attacker-controlled host, potentially exposing submitted credentials or causing the victim's browser to load untrusted scripts.
The vulnerability exists due to improper validation of the request URI in Symfony HttpFoundation's Request::getBaseUrl() when deriving the base URL under certain front-controller configurations. A remote attacker can lure a victim into following a crafted link to the legitimate application to make the browser interpret a client-controlled part of the resulting URLs as the destination host.
Affected configurations include those in which the front controller is in a subdirectory and receives request URIs that do not start with that directory, as well as those in which the web server sets SCRIPT_NAME to the request path.