Read the docs

UrlGenerator Lets Host Placeholder Values Send Generated URLs to Another Host

Priority LOW 26CWE-116Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Spoofing
Confidentiality · integrity · availability
None · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-601.

Summary

The symfony/routing and symfony/symfony packages from 0 before 5.4.57, from 6.0.0 before 6.4.51, from 7.0.0 before 7.4.24, and from 8.0.0 before 8.1.12 are affected. UrlGenerator inserts host placeholder values into generated URLs without encoding them, so characters such as # or % can change the target host (CWE-116). An attacker who controls a value that reaches a host placeholder, such as a query string passed to url(), can make a generated link send users to another domain like evil.com, and this works even when requirements are checked.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

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 now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01026 62nd percentileScored 2026-11-30
Fix Fixed symfony/routing (Symfony): 5.4.57, 6.4.51, 7.4.24 +1symfony/symfony (Symfony): 5.4.57, 6.4.51, 7.4.24 +1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
symfonysymfony/routingbefore 5.4.57; 6.0.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.125.4.57, 6.4.51, 7.4.24, 8.1.12Patch availableCNA
symfonysymfony/symfonybefore 5.4.57; 6.0.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.125.4.57, 6.4.51, 7.4.24, 8.1.12Patch availableCNA
  • symfony/routing Vendorsymfony Affected before 5.4.57; 6.0.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12 Patch available CNA
  • symfony/symfony Vendorsymfony Affected before 5.4.57; 6.0.0 to before 6.4.51; 7.0.0 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12 Patch available CNA

Remediation

Upgrade symfony/routing and symfony/symfony to 5.4.57, 6.4.51, 7.4.24 or 8.1.12, the fixed version for each branch. Until the fix is applied, do not pass untrusted values into host placeholders.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA symfony/routing (Symfony) Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12
  • Fix · CNA symfony/symfony (Symfony) Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    symfony/symfony 5.4.57, 6.4.51 and 2 more versions

    13 records Highest priority Priority MEDIUM 2 MEDIUM, 11 LOW

    Other records, highest priority first

    • TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHPPriority MEDIUM 45
    • TI-2026-98148 Nested short ternaries make the Symfony expression parser hangPriority MEDIUM 45
    • TI-2026-98153 HttpClient lets a Proxy header choose the proxy under the CLI SAPIPriority LOW 37
  • Release ·

    symfony/routing 5.4.57, 6.4.51 and 2 more versions

    2 records Highest priority Priority LOW 2 LOW

    Other records, highest priority first

    • TI-2026-98134 Incomplete fix lets Symfony UrlGenerator build URLs to other hostsPriority LOW 26

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-133754
  2. 2026-11-25 CISA SSVC decision points changed

References

  • TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
  • TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
  • TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
  • TI-2022-08704 Symfony storing cookie headers in HttpCache CVSS 3.1HIGH 8.8
  • TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHP CVSS 4.0HIGH 8.7
  • TI-2026-98148 Nested short ternaries make the Symfony expression parser hang CVSS 4.0HIGH 8.7
See all 129 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences