Vulnerability in Symfony Framework Affects Web Server URL Handling
CVE-2026-135802

Currently unrated

Key Information:

Vendor

Symfony

Vendor
CVE Published:
24 November 2026

What is CVE-2026-135802?

This vulnerability arises when the Symfony framework's Request::getBaseUrl() method misinterprets request URIs starting with // or /. In such cases, it seeks the script name deeper in the path, potentially allowing an attacker to craft deceptive links. For instance, a request like //evil.example/public/index.php/login can redirect unsuspecting users and expose sensitive information. This scenario emerges particularly in setups where the front controller resides in a subdirectory or where certain server configurations inadvertently set SCRIPT_NAME to the request's full path. As a result, links generated for user actions may point to malicious domains. To mitigate this risk, it is critical for applications to adhere to recommended configurations in the Symfony documentation.

Affected Version(s)

symfony/http-foundation 0 < 5.4.56

symfony/http-foundation 6.0.0 < 6.4.50

symfony/http-foundation 7.0.0 < 7.4.23

References

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Nicolas Grekas
.