Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5.3CVE-2026-134790

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

Symfony symfony/security-http

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-134790: medium-severity vulnerability (CVSS 5.3) in Symfony symfony/security-http.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 5.3.

Affected products and versions

Symfony symfony/security-http < 5.4.57; Symfony symfony/security-http >= 6.0.0, < 6.4.51; Symfony symfony/security-http >= 7.0.0, < 7.4.24; Symfony symfony/security-http >= 8.0.0, < 8.1.12; Symfony symfony/symfony < 5.4.57; Symfony symfony/symfony >= 6.0.0, < 6.4.51; Symfony symfony/symfony >= 7.0.0, < 7.4.24; Symfony symfony/symfony >= 8.0.0, < 8.1.12

ProductVersionsFixed in
Symfony symfony/security-http< 5.4.57—
Symfony symfony/security-http>= 6.0.0, < 6.4.51—
Symfony symfony/security-http>= 7.0.0, < 7.4.24—
Symfony symfony/security-http>= 8.0.0, < 8.1.12—
Symfony symfony/symfony< 5.4.57—
Symfony symfony/symfony>= 6.0.0, < 6.4.51—
Symfony symfony/symfony>= 7.0.0, < 7.4.24—
Symfony symfony/symfony>= 8.0.0, < 8.1.12—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-601

Relevant change history

  1. Published

    Preliminary advisory published.