CVE-2026-133754

NameCVE-2026-133754
DescriptionUrlGenerator 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6668-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
symfony (PTS)bookworm, bookworm (security)5.4.53+dfsg-0+deb12u1vulnerable
trixie6.4.50+dfsg-0+deb13u1vulnerable
trixie (security)6.4.51+dfsg-0+deb13u1fixed
forky7.4.23+dfsg-2vulnerable
sid7.4.25+dfsg-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
symfonysourcetrixie6.4.51+dfsg-0+deb13u1DSA-6668-1
symfonysource(unstable)7.4.24+dfsg-1

Notes

https://symfony.com/blog/cve-2026-133754-urlgenerator-lets-host-placeholder-values-send-generated-urls-to-another-host
https://github.com/symfony/symfony/security/advisories/GHSA-wgv4-frv7-c8c5
https://github.com/symfony/symfony/commit/73505be32fd675507f3572f5b89ed0a76733bf2f (v7.4.24)

Search for package or bug name: Reporting problems