CVE-2026-133745
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | symfony |
Fixed | 6.4.51+dfsg-0+deb13u1 |
| sid | symfony |
Fixed | 7.4.24+dfsg-1 |
| forky | symfony |
Affected | — |
| bookworm | symfony |
Affected | — |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | symfony/framework-bundle | >=5.4.44,<5.4.57|>=6.4.12,<6.4.51|>=7.1.5,<7.2.0|>=7.2.0,<7.3.0|>=7.3.0,<7.4.0|>=7.4.0,<7.4.24|>=8.0.0,<8.1.0|>=8.1.0,<8.1.12 | |
| Packagist | symfony/symfony | >=5.4.44,<5.4.57|>=6.4.12,<6.4.51|>=7.1.5,<7.2.0|>=7.2.0,<7.3.0|>=7.3.0,<7.4.0|>=7.4.0,<7.4.24|>=8.0.0,<8.1.0|>=8.1.0,<8.1.12 | |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| symfony | symfony_framework-bundle | {"startIncluding":"5.4.44","endExcluding":"5.4.57"} | 5.4.57 |
| symfony | symfony_framework-bundle | {"startIncluding":"6.4.12","endExcluding":"6.4.51"} | 6.4.51 |
| symfony | symfony_framework-bundle | {"startIncluding":"7.1.5","endExcluding":"7.4.24"} | 7.4.24 |
| symfony | symfony_framework-bundle | {"startIncluding":"8.0.0","endExcluding":"8.1.12"} | 8.1.12 |
| symfony | symfony_symfony | {"startIncluding":"5.4.44","endExcluding":"5.4.57"} | 5.4.57 |
| symfony | symfony_symfony | {"startIncluding":"6.4.12","endExcluding":"6.4.51"} | 6.4.51 |
| symfony | symfony_symfony | {"startIncluding":"7.1.5","endExcluding":"7.4.24"} | 7.4.24 |
| symfony | symfony_symfony | {"startIncluding":"8.0.0","endExcluding":"8.1.12"} | 8.1.12 |
References
CWEs
CWE-601
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.