CVE-2026-133754
published medium CVSS 4.0 · 5.3UrlGenerator Lets Host Placeholder Values Send Generated URLs to Another Host
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Symfony | — | symfony/routing0 to < 5.4.57 · 6.0.0 to < 6.4.51 · 7.0.0 to < 7.4.24 · 8.0.0 to < 8.1.12 · Other versions: unaffected | Affected | Not stated | Symfony |
| Symfony | — | symfony/symfony0 to < 5.4.57 · 6.0.0 to < 6.4.51 · 7.0.0 to < 7.4.24 · 8.0.0 to < 8.1.12 · Other versions: unaffected | Affected | Not stated | Symfony |
| Debian | trixie | symfony | Advisory build | 6.4.51+dfsg-0+deb13u1 | DSA-6668-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- Symfony · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Symfony | symfony/routing | 0 to < 5.4.57 (affected · semver)6.0.0 to < 6.4.51 (affected · semver)7.0.0 to < 7.4.24 (affected · semver)8.0.0 to < 8.1.12 (affected · semver)Default: unaffected | Symfony · cna |
| Symfony | symfony/symfony | 0 to < 5.4.57 (affected · semver)6.0.0 to < 6.4.51 (affected · semver)7.0.0 to < 7.4.24 (affected · semver)8.0.0 to < 8.1.12 (affected · semver)Default: unaffected | Symfony · cna |
Weaknesses
2- CWE-116 CWE-116 Improper Encoding or Escaping of Output
- CWE-601 CWE-601 URL Redirection to Untrusted Site
References
3- https://github.com/symfony/symfony/commit/73505be32fd675507f3572f5b89ed0a76733bf2f
- GHSA-wgv4-frv7-c8c5 https://github.com/symfony/symfony/security/advisories/GHSA-wgv4-frv7-c8c5
- CVE-2026-133754 https://symfony.com/cve-2026-133754
Provider assertions
2Symfony · cna
UrlGenerator Lets Host Placeholder Values Send Generated URLs to Another Host
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fcbb3996d27053adab7e6193b5400d3a537bea848836b45daa9e63245c13042a
- Ingested
- 25 Nov 2026, 20:13:30 UTC
- Source record
- Official CVE record