All vulnerabilities

Packagist · Servers and applications

CVE-2026-135802

Generated URLs Can Point to a Host Chosen by the Client

Severity
Medium
Published
4 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Fixed in
5.4.56, 6.4.50, 7.4.23, 8.1.11
Exploit chance
0.2% in the next 30 daysHigher than 11% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Open redirect (CWE-601)CWE-829
Also known as
GHSA-5mx8-mwrp-5693
Sources
CVE Program, Project advisories (GitHub)

Description

When Request::getBaseUrl() does not find the script name at the start of the request URI, it looks for it further into the path. This supports web servers that rewrite every URL to a front controller in a subdirectory. The base URL then kept everything before the script name, and the client chooses that part. A request URI starting with // or /\ made the base URL start with a host.

With SCRIPT_NAME=/public/index.php, a request for //evil.example/public/index.php/login is routed to /login, with the base URL //evil.example/public/index.php and the base path //evil.example/public. The URLs generated for that page then point to evil.example:

  • links built with path() and the actions of forms, so a login form sends the credentials of the user to evil.example;
  • redirects to generated URLs, such as the ones of redirectToRoute();
  • assets referenced with a relative path through asset(), so the page can load scripts from evil.example.
From symfony/symfony's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
SymfonyServers and applications · github:symfony/symfony
  • Every version before 5.4.56
  • From 6 before 6.4.50
  • From 7 before 7.4.23
  • From 8 before 8.1.11
symfony/http-foundationPackagist · osv:Packagist:symfony/http-foundation
  • Every version before 5.4.56
  • From 6.0.0 before 6.4.50
  • From 7.0.0 before 7.4.23
  • From 8.0.0 before 8.1.11
SymfonyPackagist · osv:Packagist:symfony/symfony
  • Every version before 5.4.56
  • From 6.0.0 before 6.4.50
  • From 7.0.0 before 7.4.23
  • From 8.0.0 before 8.1.11

About Symfony

PHP web application framework for MVC applications

From Wikidata, CC0 1.0.
Developers who used it in the past year
4%Stack Overflow Developer Survey 2025, 2025
Monthly downloads (Packagist)
315,437Packagist, 22 Nov 2026
Total downloads (Packagist)
88,509,675Packagist, 22 Nov 2026
GitHub stars
31,457GitHub, 22 Nov 2026
Forks
9,960GitHub, 22 Nov 2026
Latest release
v8.2.0-BETA2GitHub, 22 Nov 2026
Released
13 Nov 2026GitHub
Developer
SensioLabsWikidata
License
MIT LicenseWikidata
Written in
PHPWikidata
First released
22 Oct 2005Wikidata
First published on GitHub
4 Jan 2010GitHub

Release lines

ReleaseLatestSecurity fixes
8.18.1.11Until 31 Jan 2027
8.08.0.16Ended 31 Jul 2026
7.4 (LTS)LTS7.4.23Until 30 Nov 2029
7.37.3.11Ended 31 Jan 2026
7.27.2.9Ended 31 Jul 2025
7.17.1.11Ended 31 Jan 2025

From endoflife.date.

About symfony/http-foundation

Monthly downloads (Packagist)
36,105,486Packagist, 24 Nov 2026
Total downloads (Packagist)
1,046,409,325Packagist, 24 Nov 2026

References