Open Redirect Affecting symfony/security-http package, versions <5.4.57>=6.0.0, <6.4.51>=7.0.0, <7.4.24>=8.0.0, <8.1.12


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.03% (63rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-SYMFONYSECURITYHTTP-23188858
  • published1 Dec 2026
  • disclosed25 Nov 2026
  • creditAmimul Ihsan

Introduced: 25 Nov 2026

NewCVE-2026-134790  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade symfony/security-http to version 5.4.57, 6.4.51, 7.4.24, 8.1.12 or higher.

Overview

symfony/security-http is a provides an infrastructure for sophisticated authorization systems, which makes it possible to easily separate the actual authorization logic from so called user providers that hold the users credentials.

Affected versions of this package are vulnerable to Open Redirect via HttpUtils::createRedirectResponse() in HttpUtils.php, which parses the host of a redirect target URL only up to the first /, while browsers also terminate the host at \, ?, and #. When framework.session.cookie_domain is set to a domain such as .example.com, a target URL like https://evil.test?.example.com passes the allowed-domain check because the query-string delimiter fools the host extraction, yet the browser navigates to evil.test. The default success and failure handlers of form_login redirect to the _target_path or _failure_path supplied in the request, so an attacker can craft a login link that sends the user to an arbitrary external site immediately after a successful login.

Note: This is only exploitable when framework.session.cookie_domain is explicitly set in the application configuration.

CVSS Base Scores

version 4.0
version 3.1