Open redirect in Symfony router via paths starting with //
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-601.
Summary
Symfony's symfony/framework-bundle and symfony/symfony packages are affected from 5.4.44 before 5.4.57, from 6.4.12 before 6.4.51, from 7.1.5 before 7.4.24, and from 8.0.0 before 8.1.12. Trailing-slash and scheme redirects turn a request path starting with // into a full URL, so the browser goes to the host written after the slashes (CWE-601). A remote attacker can send a user to another site if the user follows a crafted link, and no authentication is needed.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
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 now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| symfony | symfony/framework-bundle | 5.4.44 to before 5.4.57; 6.4.12 to before 6.4.51; 7.1.5 to before 7.4.24; 8.0.0 to before 8.1.12 | 5.4.57, 6.4.51, 7.4.24, 8.1.12 | Patch available | CNA |
| symfony | symfony/symfony | 5.4.44 to before 5.4.57; 6.4.12 to before 6.4.51; 7.1.5 to before 7.4.24; 8.0.0 to before 8.1.12 | 5.4.57, 6.4.51, 7.4.24, 8.1.12 | Patch available | CNA |
- symfony/framework-bundle Vendorsymfony Affected 5.4.44 to before 5.4.57; 6.4.12 to before 6.4.51; 7.1.5 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12 Patch available CNA
- symfony/symfony Vendorsymfony Affected 5.4.44 to before 5.4.57; 6.4.12 to before 6.4.51; 7.1.5 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12 Patch available CNA
Remediation
Upgrade symfony/framework-bundle and symfony/symfony to 5.4.57, 6.4.51, 7.4.24 or 8.1.12, the fixed version for each release line. The sources list no advisory identifier for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
- Fix · CNA symfony/framework-bundle (Symfony) Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12
- Fix · CNA symfony/symfony (Symfony) Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
symfony/symfony 5.4.57, 6.4.51 and 2 more versions
13 records Highest priority Priority MEDIUM 2 MEDIUM, 11 LOW
Other records, highest priority first
- TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHPPriority MEDIUM 45
- TI-2026-98148 Nested short ternaries make the Symfony expression parser hangPriority MEDIUM 45
- TI-2026-98153 HttpClient lets a Proxy header choose the proxy under the CLI SAPIPriority LOW 37
Timeline
- 2026-11-25 Threatist record created from CVE-2026-133745
- 2026-11-26 EPSS moved to the 50th–90th percentile
References
More symfony vulnerabilities
- TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
- TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
- TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
- TI-2022-08704 Symfony storing cookie headers in HttpCache CVSS 3.1HIGH 8.8
- TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHP CVSS 4.0HIGH 8.7
- TI-2026-98148 Nested short ternaries make the Symfony expression parser hang CVSS 4.0HIGH 8.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences