# CVE-2026-135802: Generated URLs Can Point to a Host Chosen by the Client

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.70% (percentile 49, 2026-11-28)
- **CWE:** CWE-601, CWE-829
- **Published:** 2026-11-24T08:55:16.072Z
- **Modified:** 2026-11-25T20:18:38.120Z

## Who should check

- Anyone running symfony/http-foundation \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11
- Anyone running symfony/symfony \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11

## 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.

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 /\\.

## Affected and fixed versions

- symfony/http-foundation: \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11 (cvelist)
- symfony/symfony: \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11 (cvelist)

## Technologies

Symfony

## Mitigation

- Upgrade symfony/http-foundation to 8.1.11 or later.
- Upgrade symfony/symfony to 8.1.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-135802. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-135802.md
Affected: symfony/http-foundation < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11; symfony/symfony < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11
Fixed in: symfony/http-foundation 5.4.56, symfony/http-foundation 6.4.50, symfony/http-foundation 7.4.23, symfony/http-foundation 8.1.11, symfony/symfony 5.4.56, symfony/symfony 6.4.50, symfony/symfony 7.4.23, symfony/symfony 8.1.11

Steps:
1. Search this machine and project for symfony/http-foundation, symfony/symfony: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-135802 being exploited?

There is no confirmed exploitation: CVE-2026-135802 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-135802?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-135802?

symfony/http-foundation \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11; symfony/symfony \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11.

### Is there a fix for CVE-2026-135802?

Yes. Fixed in symfony/http-foundation 5.4.56, symfony/http-foundation 6.4.50, symfony/http-foundation 7.4.23, symfony/http-foundation 8.1.11, symfony/symfony 5.4.56, symfony/symfony 6.4.50, symfony/symfony 7.4.23, symfony/symfony 8.1.11. Upgrade symfony/http-foundation to 8.1.11 or later. Upgrade symfony/symfony to 8.1.11 or later.

### How do I check if I'm affected by CVE-2026-135802?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://symfony.com/cve-2026-135802>
- vendor: <https://github.com/symfony/symfony/security/advisories/GHSA-5mx8-mwrp-5693>
- patch: <https://github.com/symfony/symfony/commit/7f1e183847530b7bc1bfbdae63e3f0e20051594b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-135802>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-135802> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-135802>
