CVE-2026-134790
Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652
- CVSS
- 5.3
- EPSS
- 1.03% (p63)
- Published
- 2026-11-25
- Age
- 4d old
- Modified
- 2026-11-25
- Product
- Symfony symfony/security-http
- Aliases
- GHSA-xf2q-gfhq-mv2q
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
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.
Fixed in
5.4.57 · 6.4.51 · 7.4.24 · 8.1.12
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| unknown | symfony/security-http | >=0, <5.4.57 | 5.4.57 |
| unknown | symfony/security-http | >=6.0.0, <6.4.51 | 6.4.51 |
| unknown | symfony/security-http | >=7.0.0, <7.4.24 | 7.4.24 |
| unknown | symfony/security-http | >=8.0.0, <8.1.12 | 8.1.12 |
| unknown | symfony/symfony | >=0, <5.4.57 | 5.4.57 |
| unknown | symfony/symfony | >=6.0.0, <6.4.51 | 6.4.51 |
| unknown | symfony/symfony | >=7.0.0, <7.4.24 | 7.4.24 |
| unknown | symfony/symfony | >=8.0.0, <8.1.12 | 8.1.12 |
Sources
- NVD · first seen 4d ago · NVD terms of use
- OSV · first seen 4d ago · CC-BY 4.0
- CVE List · first seen 4d ago · CVE Terms of Use
References
- https://symfony.com/cve-2026-134790 vendor-advisory
- https://github.com/symfony/symfony/security/advisories/GHSA-xf2q-gfhq-mv2q vendor-advisory
- https://github.com/symfony/symfony/commit/b311687afd165a4f62dcd2dff4632be7eb1db844 patch
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134790.json advisory
- https://github.com/symfony/symfony package
- https://nvd.nist.gov/vuln/detail/CVE-2026-134790 advisory
- https://packagist.org web