CVE-2026-134790: 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

The fix for CVE-2017-16652 restricts the redirects of HttpUtils::createRedirectResponse() to the host of the request. When framework.session.cookiedomain 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.cookiedomain is set. The default success and failure handlers of formlogin redirect to the targetpath or failurepath 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 Software

1 affected component
composer/symfony/security-http

Event History

Nov 25, 2026
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
DescriptionWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Applications are exposed when framework.session.cookie_domain is set. The issue affects redirect handling that uses HttpUtils::createRedirectResponse(), including the default form_login success and failure handlers when they redirect to request-supplied _target_path or _failure_path values.

2

What does an attacker need to exploit this?

An attacker needs to cause a user to follow a login link carrying a crafted redirect target. With a cookie domain such as .example.com, a target like https://evil.test?.example.com can pass the flawed host check but be interpreted by the browser as a redirect to evil.test after login.

3

Are default form_login redirect handlers relevant?

Yes. The default success and failure handlers of form_login redirect to _target_path or _failure_path from the request, so a crafted login URL can redirect a user to an external site immediately after successful login.

4

What changed in the fix?

HttpUtils now treats \, ?, and # as host terminators, consistent with browser URL parsing, before comparing the target host with the allowed domains.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203