Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
Medium 5.3CVE-2026-134790

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

Published 25/11/2026 · Updated 25/11/2026 · symfony/security-http

Original 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 and versions

Symfony symfony/security-http< 5.4.57 · 6.0.0 – < 6.4.51 · 7.0.0 – < 7.4.24 · 8.0.0 – < 8.1.12Fixed in: 5.4.57 · 6.4.51 · 7.4.24 · 8.1.12
Symfony symfony/symfony< 5.4.57 · 6.0.0 – < 6.4.51 · 7.0.0 – < 7.4.24 · 8.0.0 – < 8.1.12Fixed in: 5.4.57 · 6.4.51 · 7.4.24 · 8.1.12

CVSS vector, explained

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Attack vector
Network (from the internet)
Attack complexity
Low
Attack requirements
None
Privileges required
None (no login)
User interaction
Passive
Confidentiality
None
Integrity
None
Availability
None

Weakness type (CWE)

  • CWE-601 URL Redirection to Untrusted Site

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Summaries are AI-written under strict rules; always check the vendor's official advisory.