Improper Encoding or Escaping of Output Affecting symfony/routing package, versions <5.4.57>=6.0.0, <6.4.51>=7.0.0, <7.4.24>=8.0.0, <8.1.12


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.03% (63rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-SYMFONYROUTING-23188900
  • published1 Dec 2026
  • disclosed25 Nov 2026
  • creditUnknown

Introduced: 25 Nov 2026

NewCVE-2026-133754  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade symfony/routing to version 5.4.57, 6.4.51, 7.4.24, 8.1.12 or higher.

Overview

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via UrlGenerator, which inserts host placeholder values into generated URLs without encoding or validating them. The default requirement [^.]++ permits characters such as /, @, #, ?, \, %, and :, allowing an attacker to supply a value like evil%2Ecom# for a {tenant}.example.com host pattern, producing a URL such as https://evil%2Ecom#.example.com/dashboard that browsers resolve to evil.com. Unicode full stops (e.g. 。) produce the same effect because IDNA maps them to .. This affects applications that pass untrusted input to host placeholders, including routes using RedirectController::redirectAction() with keepQueryParams: true when the target route has a host placeholder the redirecting route does not define.

CVSS Base Scores

version 4.0
version 3.1