CVE-2026-133745
published medium CVSS 4.0 · 5.3Trailing-Slash and Scheme Redirects Send Paths Starting With // to Another Host
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Symfony | — | symfony/framework-bundle5.4.44 to < 5.4.57 · 6.4.12 to < 6.4.51 · 7.1.5 to < 7.4.24 · 8.0.0 to < 8.1.12 · Other versions: unaffected | Affected | Not stated | Symfony |
| Symfony | — | symfony/symfony5.4.44 to < 5.4.57 · 6.4.12 to < 6.4.51 · 7.1.5 to < 7.4.24 · 8.0.0 to < 8.1.12 · Other versions: unaffected | Affected | Not stated | Symfony |
| Debian | trixie | symfony | Advisory build | 6.4.51+dfsg-0+deb13u1 | DSA-6668-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- Symfony · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Symfony | symfony/framework-bundle | 5.4.44 to < 5.4.57 (affected · semver)6.4.12 to < 6.4.51 (affected · semver)7.1.5 to < 7.4.24 (affected · semver)8.0.0 to < 8.1.12 (affected · semver)Default: unaffected | Symfony · cna |
| Symfony | symfony/symfony | 5.4.44 to < 5.4.57 (affected · semver)6.4.12 to < 6.4.51 (affected · semver)7.1.5 to < 7.4.24 (affected · semver)8.0.0 to < 8.1.12 (affected · semver)Default: unaffected | Symfony · cna |
Weaknesses
1- CWE-601 CWE-601 URL Redirection to Untrusted Site
References
3- https://github.com/symfony/symfony/commit/f2efcbcb236cf18a4efa71581c20edbe03c7ef6b
- GHSA-q2qh-q4p8-qcmj https://github.com/symfony/symfony/security/advisories/GHSA-q2qh-q4p8-qcmj
- CVE-2026-133745 https://symfony.com/cve-2026-133745
Provider assertions
2Symfony · cna
Trailing-Slash and Scheme Redirects Send Paths Starting With // to Another Host
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 79f3cda346967aa61cd8f4ac8e3892aae1a916470b4ddedab4fc3bce9367b2ee
- Ingested
- 01 Dec 2026, 16:54:56 UTC
- Source record
- Official CVE record