A vulnerability in the Request::getBaseUrl() method causes it to incorrectly parse the base URL when the request URI starts with // or /\, allowing attackers to craft URLs that cause generated links, redirects, and asset references to point to an attacker-controlled host. This affects applications whose front controller is in a subdirectory and whose web server rewrites URLs in a way that the request URI does not start with that subdirectory. The issue can lead to user credentials being sent to malicious hosts and loading of attacker-controlled scripts. The vulnerability is mitigated by the updated behavior where getBaseUrl() returns an empty base URL for such URIs. Recommended Symfony configurations are not affected.