symfony/http-foundation security advisory
CVE-2026-135802: Generated URLs Can Point to a Host Chosen by the Client in symfony/http-foundation
CVE-2026-135802 is an open redirect vulnerability in the PHP package symfony/http-foundation, published 24 November 2026. It is fixed in 5.4.56, 6.4.50, 7.4.23 and 8.1.11, one per release line; earlier versions on each line are affected.
published 2026-11-24
- Affected versions
- >= 2.0.0, < 5.4.56
>= 6.0.0, < 6.4.50
>= 7.0.0, < 7.4.23
>= 8.0.0, < 8.1.11 - Fixed in
- 5.4.56, 6.4.50, 7.4.23, 8.1.11
- Newest release
- 8.2.0
- Type
- Open redirect
CWE-601, CWE-829 - Exploited in the wild
- Not on the CISA KEV list
checked 2026-11-29
Also affects
- symfony/symfony >= 2.0.0, < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11 fixed in 5.4.56, 6.4.50, 7.4.23, 8.1.11
Is your symfony/http-foundation version affected?
Who can exploit CVE-2026-135802
The record does not say what access is needed yet. Until it is scored, assume anyone who can reach your app can try it.
Technical details
Weakness
A redirect takes its destination from input without properly restricting it.
A link on a trusted domain can send visitors to a phishing or malware site.
General description of this issue type. The advisory below covers this bug.
How to fix CVE-2026-135802 in symfony/http-foundation
- Find the installed version:
composer show symfony/http-foundation. If you never required it yourself,composer why symfony/http-foundationshows which package pulls it in. - Update it:
composer update symfony/http-foundation --with-all-dependencies. You need the fixed version for your release line (5.4.56, 6.4.50, 7.4.23 and 8.1.11). - If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example
"symfony/http-foundation": "^8.1.11"if you can take that version), or upgrade the package that requires it. - Run
composer audit. It reads the same advisory data and should no longer list CVE-2026-135802. - Commit composer.lock and deploy it. On the server, run
composer install --no-devfrom the lock file, notcomposer update.
If you cannot upgrade yet
- Only redirect to relative paths or to an allow-list of your own hosts.
- If your app does not use the affected feature, note that in your audit, but still plan the upgrade.
Is your project exposed to CVE-2026-135802?
Check the one package here, or check everything your project installs at once.
- Check symfony/http-foundation Enter your installed version and compare it with every known symfony/http-foundation advisory. Check my version
-
Check your whole composer.lock
The free checker compares every locked package with the same advisory data
composer audituses. Check composer.lock
The CVE-2026-135802 advisory
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. The attacker has to make a user follow a crafted link, such as https://app.example//evil.example/public/index.php/login. framework.trusted_hosts does not help, since the host of the request is the real one. Applications are affected when their front controller is in a subdirectory and the web server sends it URIs that do not start with that directory. A .htaccess file at the root of the project that rewrites every URL to public/ does that, for instance. Applications are also affected when the web server sets SCRIPT_NAME to the path of the request. Some nginx configurations do that when they send every request to the front controller without fastcgi_split_path_info. php -S does it too, with a router script outside the document root. A request for /\evil.example/index.php then gets the base URL /\evil.example/index.php, which browsers read as a link to evil.example. The configurations recommended in the Symfony documentation are not affected. Request::getBaseUrl() now returns an empty base URL when the request URI starts with // or /\.
References
- GitHub security advisory GHSA-5mx8-mwrp-5693 github.com
- Symfony security advisory symfony.com
- Fix commit 7f1e183 github.com
Other symfony/http-foundation advisories
- CVE-2026-121619: The "private_ranges" Trusted Proxies Shortcut Trusts Clients Presenting an IPv4-Mapped, 6to4, Teredo or NAT64 Address as Reverse Proxies 2026-11-04
- CVE-2026-133748: NoPrivateNetworkHttpClient With Custom Subnets Lets IPv4-Mapped Addresses Through 2026-11-04
- CVE-2026-135801: Path Rules Enforced in Front of PHP Can Be Bypassed by Appending the Path to the Script Name 2026-11-04
- CVE-2026-118514: HEAD Requests Bypass the methods Option of security.access_control Rules and Firewalls: Incomplete Fix for CVE-2026-45075 2026-11-04
- high CVE-2026-108082: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header 2026-09-15
- medium CVE-2026-48736: IpUtils::PRIVATE_SUBNETS Omits IPv6 Transition Forms (6to4, NAT64, Teredo, IPv4-compatible): SSRF Bypass in NoPrivateNetworkHttpClient 2026-05-26
Related
Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.
Ask about a fixWhere this data comes from
- Affected and fixed versions: the Packagist security advisories API (GitHub Advisory Database and FriendsOfPHP), the same data
composer audituses. Synced 2026-11-29. - Description, score, weakness and references: NIST National Vulnerability Database (NVD), checked 2026-11-25. This product uses data from the NVD API but is not endorsed or certified by the NVD.
- Exploited-in-the-wild status: the CISA Known Exploited Vulnerabilities catalog, checked 2026-11-29.
- Compiled by Daniel Lasek at Laskyr from the sources above. Everything outside the quoted description is our plain-English reading of the record, generated from it. Spot an error? Tell us.