Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 22, 2026
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.
| Product | Versions |
|---|---|
| symfony/security-http Symfony | before 5.4.57 Affected6.0.0 to before 6.4.51 Affected7.0.0 to before 7.4.24 Affected8.0.0 to before 8.1.12 Affected |
| symfony/symfony Symfony | before 5.4.57 Affected6.0.0 to before 6.4.51 Affected7.0.0 to before 7.4.24 Affected8.0.0 to before 8.1.12 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | Symfony |
Weaknesses
- CWE-601 URL Redirection to Untrusted Site
References
- CVE-2026-134790Vendor Advisory
- GHSA-xf2q-gfhq-mv2qVendor Advisory
- https://github.com/symfony/symfony/commit/b311687afd165a4f62dcd2dff4632be7eb1db844Patch
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.