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

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

Symfony symfony/framework-bundle

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-133745: medium-severity vulnerability (CVSS 5.3) in Symfony symfony/framework-bundle.

What happened

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

Why it matters

Medium severity, CVSS 5.3.

Affected products and versions

Symfony symfony/framework-bundle >= 5.4.44, < 5.4.57; Symfony symfony/framework-bundle >= 6.4.12, < 6.4.51; Symfony symfony/framework-bundle >= 7.1.5, < 7.4.24; Symfony symfony/framework-bundle >= 8.0.0, < 8.1.12; Symfony symfony/symfony >= 5.4.44, < 5.4.57; Symfony symfony/symfony >= 6.4.12, < 6.4.51; Symfony symfony/symfony >= 7.1.5, < 7.4.24; Symfony symfony/symfony >= 8.0.0, < 8.1.12

ProductVersionsFixed in
Symfony symfony/framework-bundle>= 5.4.44, < 5.4.57—
Symfony symfony/framework-bundle>= 6.4.12, < 6.4.51—
Symfony symfony/framework-bundle>= 7.1.5, < 7.4.24—
Symfony symfony/framework-bundle>= 8.0.0, < 8.1.12—
Symfony symfony/symfony>= 5.4.44, < 5.4.57—
Symfony symfony/symfony>= 6.4.12, < 6.4.51—
Symfony symfony/symfony>= 7.1.5, < 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.