CVE-2026-135802 - Generated URLs Can Point to a Host Chosen by the Client
Vulnerability · Reported by NVD · · CWE-601, CWE-829
- Severity
- High Estimated, NVD hasn't scored it yet
- CVSS
- – Not scored yet
- Exploit chance (EPSS)
- 0.7% Higher than 49% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
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
Is it being exploited?
The EPSS model estimates a 0.70% chance this CVE will be exploited in the next 30 days, which is low and higher than 49% of all published CVEs.
Patch priority and what to do
Schedule patching in your next maintenance window, and sooner for internet-facing systems. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Review logs for signs of exploitation since the publication date.
Tags
CVE-2026-135802, Web servers
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-135802 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
NVD has not scored this CVE yet. The severity shown is an estimate from the article text and will be replaced automatically.
How this data is collected: methodology & sources.