CVE-2026-133754
UrlGenerator Lets Host Placeholder Values Send Generated URLs to Another Host
- CVSS
- 5.3
- EPSS
- 1.03% (p63)
- Published
- 2026-11-25
- Age
- 4d old
- Modified
- 2026-11-26
- Product
- Symfony symfony/routing
- Aliases
- GHSA-wgv4-frv7-c8c5
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Description
UrlGenerator puts the values of host placeholders into the generated URL without encoding them. Their default requirement, [^.]++, accepts /, @, #, ?, \, % and :. With the host {tenant}.example.com, the value evil%2Ecom# gives https://evil%2Ecom#.example.com/dashboard, which browsers send to evil.com. This works even when requirements are checked. Unicode full stops like 。 have the same effect, since IDNA maps them to .. Applications are exposed when untrusted values reach host placeholders, for example when they pass the query string of the request to url(). A route that uses RedirectController::redirectAction() with keepQueryParams: true does the same, when the target route has a host placeholder that the redirecting route doesn't define. UrlGenerator now rejects host placeholder values that contain a character that is forbidden in a host. These characters are C0 controls, space, #, %, /, :, <, >, ?, @, [, \, ], ^, | and DEL. Unicode full stops are rejected too. This check applies whatever strict_requirements is set to. When strict_requirements is false or null, the generator logs an error and returns an empty string instead of throwing. Host placeholder values can still be an IPv6 literal like [::1], but they can't contain a port anymore.
Fixed in
5.4.57 · 6.4.51 · 7.4.24 · 8.1.12
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| unknown | symfony/routing | >=0, <5.4.57 | 5.4.57 |
| unknown | symfony/routing | >=6.0.0, <6.4.51 | 6.4.51 |
| unknown | symfony/routing | >=7.0.0, <7.4.24 | 7.4.24 |
| unknown | symfony/routing | >=8.0.0, <8.1.12 | 8.1.12 |
| unknown | symfony/symfony | >=0, <5.4.57 | 5.4.57 |
| unknown | symfony/symfony | >=6.0.0, <6.4.51 | 6.4.51 |
| unknown | symfony/symfony | >=7.0.0, <7.4.24 | 7.4.24 |
| unknown | symfony/symfony | >=8.0.0, <8.1.12 | 8.1.12 |
Sources
- NVD · first seen 4d ago · NVD terms of use
- OSV · first seen 4d ago · CC-BY 4.0
- CVE List · first seen 4d ago · CVE Terms of Use
References
- https://symfony.com/cve-2026-133754 vendor-advisory
- https://github.com/symfony/symfony/security/advisories/GHSA-wgv4-frv7-c8c5 vendor-advisory
- https://github.com/symfony/symfony/commit/73505be32fd675507f3572f5b89ed0a76733bf2f patch
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133754.json advisory
- https://github.com/symfony/symfony package
- https://nvd.nist.gov/vuln/detail/CVE-2026-133754 advisory
- https://packagist.org web