CVE-2026-133745 in framework-bundleinfo

Summary

by MITRE • 11/25/2026

The router redirects a request to the same URL with or without its trailing slash, or with the scheme that a route requires. To do so, the matcher returns RedirectController::urlRedirectAction() with the path info of the request as path. Since Symfony 5.4.44, 6.4.12 and 7.1.5, urlRedirectAction() turns a path that starts with // into <scheme>://..., so that protocol-relative targets configured in routes work. The path info of a request starts with // when its URI does. So these redirects send the browser to the host written at the start of the path:

GET https://app.example//evil.example/edit/ => 301 Location: https://evil.example/edit

This affects routes whose path starts with a placeholder that accepts /, like /{path}/edit with the .+ requirement. The trailing-slash redirect applies to all of them, and the scheme redirect to the ones that require a scheme. A front controller in a subdirectory doesn't prevent it.

The matcher now encodes the slash or backslash that follows the leading slash of the path it redirects to, as %2F or %5C. It also does so when tabs or newlines come in between. The target route still matches it, and protocol-relative targets configured in routes keep working.

The matchers of the Routing component encode it too before calling RedirectableUrlMatcherInterface::redirect(), so that other implementations of this method get the encoded path as well.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

This vulnerability represents a critical flaw within the Symfony Framework routing component, specifically affecting versions 5.4 through 7.1 prior to their respective patch releases. The core issue stems from how the framework handles URL redirection logic when processing requests that contain double slashes at the beginning of the path information. In standard HTTP behavior and browser interpretation, a URI starting with // is treated as protocol-relative, meaning it inherits the scheme (http or https) of the current page but directs traffic to a different host entirely. The Symfony router's RedirectController::urlRedirectAction() method was designed to support such protocol-relative targets for specific routing configurations. However, this functionality inadvertently created an open redirect vulnerability when user-controlled input resulted in paths starting with double slashes.

The technical mechanism of the exploit relies on the interaction between the request URI and the route matching process. When a front controller receives a request where the path info begins with //, such as https://app.example//evil.example/edit/, the router identifies this pattern to facilitate protocol-relative redirections for legitimate routes configured in that manner. Unfortunately, because the framework did not sufficiently validate or sanitize these inputs against open redirect risks, it would generate an HTTP 301 response directing the browser's location header to the host specified after the double slashes. In the example provided, a user visiting the application on app.example could be redirected to evil.example if they crafted a URL with //evil.example in the path segment that matched a route accepting such patterns. This behavior persists even when the front controller is situated in a subdirectory, as the routing logic operates independently of the base directory structure for these specific redirect scenarios.

The operational impact of this vulnerability is significant from both security and user experience perspectives. An attacker can leverage this open redirect to conduct phishing attacks by tricking users into clicking links that appear to originate from the trusted domain but actually lead to a malicious site mimicking the application's interface. This undermines trust in the domain and facilitates credential theft or malware distribution. Furthermore, search engines may interpret these redirects as indicative of compromised content, potentially affecting SEO rankings. The vulnerability affects routes where the path definition includes placeholders that accept forward slashes, such as /{path}/edit with a regex requirement like .+, making it applicable to many dynamic routing configurations commonly used in web applications.

To mitigate this risk, developers must upgrade their Symfony installations to version 5.4.44, 6.4.12, or 7.1.5 and later. These patched versions introduce encoding logic that neutralizes the double-slash exploit by converting leading slashes into percent-encoded characters like %2F for forward slashes or %5C for backslashes before passing them to the redirect mechanism. This ensures that while protocol-relative targets configured explicitly in route definitions continue to function correctly, user-supplied input containing // is no longer interpreted as a directive to change hosts. The fix also extends to other implementations of RedirectableUrlMatcherInterface::redirect(), ensuring consistent behavior across different routing configurations. Additionally, tabs and newlines interspersed within the path are similarly encoded to prevent bypass attempts using whitespace characters.

From a classification standpoint, this vulnerability aligns with CWE-601: URL Redirection to Untrusted Site ('Open Redirect'). It also maps to MITRE ATT&CK technique T1583.002: Domains (Phishing), as it enables the creation of deceptive links that appear legitimate but redirect users to malicious infrastructure. Security teams should audit their routing configurations for any custom implementations of URL redirection and ensure they adhere to strict validation rules that prevent host manipulation via path injection. Regular updates to framework dependencies are essential, as this specific flaw highlights how internal logic optimizations can inadvertently introduce security regressions if input sanitization is not rigorously applied during the redirect process.

Responsible

Symfony

Reservation

11/20/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.01026

KEV

no

Activities

low

Sources

Interested in the pricing of exploits?

See the underground prices here!