CVE-2026-133745: Trailing-Slash and Scheme Redirects Send Paths Starting With // to Another Host

Published Nov 25, 2026
·
Updated

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.

Affected Software

1 affected component
composer/symfony/routing>=5.4.44, >=6.4.12, >=7.1.5

Event History

Nov 25, 2026
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
DescriptionWeakness

Frequently Asked Questions

1

Which route patterns are exposed to this redirect behavior?

Routes beginning with a placeholder that accepts slashes are affected, such as /{path}/edit with a .+ requirement. Trailing-slash redirects affect all such routes, while scheme redirects affect those that require a specific scheme.

2

What must an attacker be able to send to trigger a redirect to another host?

The request URI must begin with // and must cause the router to perform a trailing-slash or required-scheme redirect. For example, a request path beginning //evil.example can produce a Location header targeting evil.example.

3

Does placing the front controller in a subdirectory prevent the issue?

No. A front controller deployed in a subdirectory does not prevent the redirect behavior.

4

How does the matcher change address the unsafe redirect target?

It encodes a slash or backslash immediately following the path's leading slash as %2F or %5C before redirecting. It also applies this encoding when tabs or newlines appear between the leading slash and the slash or backslash.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203