Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5.3CVE-2026-133754

CVE-2026-133754: UrlGenerator Lets Host Placeholder Values Send Generated URLs to Another Host

Symfony symfony/routing

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-133754: medium-severity vulnerability (CVSS 5.3) in Symfony symfony/routing.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 5.3.

Affected products and versions

Symfony symfony/routing < 5.4.57; Symfony symfony/routing >= 6.0.0, < 6.4.51; Symfony symfony/routing >= 7.0.0, < 7.4.24; Symfony symfony/routing >= 8.0.0, < 8.1.12; Symfony symfony/symfony < 5.4.57; Symfony symfony/symfony >= 6.0.0, < 6.4.51; Symfony symfony/symfony >= 7.0.0, < 7.4.24; Symfony symfony/symfony >= 8.0.0, < 8.1.12

ProductVersionsFixed in
Symfony symfony/routing< 5.4.57—
Symfony symfony/routing>= 6.0.0, < 6.4.51—
Symfony symfony/routing>= 7.0.0, < 7.4.24—
Symfony symfony/routing>= 8.0.0, < 8.1.12—
Symfony symfony/symfony< 5.4.57—
Symfony symfony/symfony>= 6.0.0, < 6.4.51—
Symfony symfony/symfony>= 7.0.0, < 7.4.24—
Symfony symfony/symfony>= 8.0.0, < 8.1.12—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-116, CWE-601

Relevant change history

  1. Published

    Preliminary advisory published.