{"id":"CVE-2026-133745","aliases":["CVE-2026-133745"],"related":[],"kind":"vulnerability","state":"published","title":"Trailing-Slash and Scheme Redirects Send Paths Starting With // to Another Host","summary":"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:\n\nGET https://app.example//evil.example/edit/  =>  301 Location: https://evil.example/edit\n\nThis 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.\n\nThe 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.\n\nThe 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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:\n\nGET https://app.example//evil.example/edit/  =>  301 Location: https://evil.example/edit\n\nThis 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.\n\nThe 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.\n\nThe 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.","source":"cvelist"}],"published":"2026-11-25T10:00:05.781Z","modified":"2026-12-01T17:17:28.363Z","severity":{"scorer":"Symfony","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"Symfony","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"semver","introduced":"5.4.44","fixed":"5.4.57","status":"affected"},{"type":"semver","introduced":"6.4.12","fixed":"6.4.51","status":"affected"},{"type":"semver","introduced":"7.1.5","fixed":"7.4.24","status":"affected"},{"type":"semver","introduced":"8.0.0","fixed":"8.1.12","status":"affected"}],"vendor":"Symfony","product":"symfony/framework-bundle","package":"symfony/framework-bundle","repo":"https://github.com/symfony/symfony","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"5.4.44","fixed":"5.4.57","status":"affected"},{"type":"semver","introduced":"6.4.12","fixed":"6.4.51","status":"affected"},{"type":"semver","introduced":"7.1.5","fixed":"7.4.24","status":"affected"},{"type":"semver","introduced":"8.0.0","fixed":"8.1.12","status":"affected"}],"vendor":"Symfony","product":"symfony/symfony","package":"symfony/symfony","repo":"https://github.com/symfony/symfony","source":"cvelist"}],"references":[{"url":"https://symfony.com/cve-2026-133745","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-q2qh-q4p8-qcmj","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/symfony/symfony/commit/f2efcbcb236cf18a4efa71581c20edbe03c7ef6b","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":["Yan Buatois","Amimul Ihsan","Nicolas Grekas"],"assigner":"Symfony","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-12-01T16:47:04.834Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-133745","url":"https://www.cve.org/CVERecord?id=CVE-2026-133745","licence":"CVE Terms of Use","modified":"2026-12-01T16:50:30.426Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-133745","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133745","licence":"Public domain","modified":"2026-12-01T17:17:28.363Z"}],"updatedAt":"2026-12-01T17:32:16.530Z","epss":{"score":0.01026,"percentile":0.64562,"date":"2026-12-01T12:00:22.000Z"}}