Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-134790 EUVD-2026-135188

Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652

Published Nov 25, 2026 · Updated Nov 25, 2026 · Assigned by Symfony

Description

The fix for CVE-2017-16652 restricts the redirects of HttpUtils::createRedirectResponse() to the host of the request. When framework.session.cookie_domain is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first "/". But browsers also end the host at "\", "?" and "#". So with the cookie domain .example.com, a target like https://evil.test?.example.com passed the check, and the browser went to evil.test.

Applications are exposed when framework.session.cookie_domain is set. The default success and failure handlers of form_login redirect to the _target_path or _failure_path of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again.

HttpUtils now ends the host of a target where browsers do, before checking it against the allowed domains.

Affected products

VendorProductAffectedFixed
Symfony symfony/security-http < 5.4.57, 6.0.0 – < 6.4.51, 7.0.0 – < 7.4.24, 8.0.0 – < 8.1.12 5.4.57
Symfony symfony/symfony < 5.4.57, 6.0.0 – < 6.4.51, 7.0.0 – < 7.4.24, 8.0.0 – < 8.1.12 5.4.57

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 symfony No fix yet —
Debian 13 symfony 6.4.51+dfsg-0+deb13u1 DSA-6668-1
Debian 12 symfony No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 symfony No fix yet —
Ubuntu 26.04 LTS symfony No fix yet —
Ubuntu 16.04 LTS symfony No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS symfony No fix yet —
Ubuntu Pro 22.04 LTS symfony No fix yet —
Ubuntu Pro 20.04 LTS symfony No fix yet —
Ubuntu Pro 18.04 LTS symfony No fix yet —

Advisories 1

References