CVE-2026-134790
published medium CVSS 4.0 · 5.3Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Symfony | — | symfony/security-http0 to < 5.4.57 · 6.0.0 to < 6.4.51 · 7.0.0 to < 7.4.24 · 8.0.0 to < 8.1.12 · Other versions: unaffected | Affected | Not stated | Symfony |
| Symfony | — | symfony/symfony0 to < 5.4.57 · 6.0.0 to < 6.4.51 · 7.0.0 to < 7.4.24 · 8.0.0 to < 8.1.12 · Other versions: unaffected | Affected | Not stated | Symfony |
| Debian | trixie | symfony | Advisory build | 6.4.51+dfsg-0+deb13u1 | DSA-6668-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- Symfony · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Symfony | symfony/security-http | 0 to < 5.4.57 (affected · semver)6.0.0 to < 6.4.51 (affected · semver)7.0.0 to < 7.4.24 (affected · semver)8.0.0 to < 8.1.12 (affected · semver)Default: unaffected | Symfony · cna |
| Symfony | symfony/symfony | 0 to < 5.4.57 (affected · semver)6.0.0 to < 6.4.51 (affected · semver)7.0.0 to < 7.4.24 (affected · semver)8.0.0 to < 8.1.12 (affected · semver)Default: unaffected | Symfony · cna |
Weaknesses
1- CWE-601 CWE-601 URL Redirection to Untrusted Site
References
3- https://github.com/symfony/symfony/commit/b311687afd165a4f62dcd2dff4632be7eb1db844
- GHSA-xf2q-gfhq-mv2q https://github.com/symfony/symfony/security/advisories/GHSA-xf2q-gfhq-mv2q
- CVE-2026-134790 https://symfony.com/cve-2026-134790
Provider assertions
2Symfony · cna
Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6a2997309c02ab63a706c49da6386b6c976b19337eb41d3fde363da4eb320b53
- Ingested
- 25 Nov 2026, 20:13:30 UTC
- Source record
- Official CVE record