Skip to content

The publication for web craftspeople Thursday, 26 November 2026

Security

Symfony Patches Ten Security Flaws, Including a Login Redirect Bypass

Symfony published ten security advisories on the same day, from a login redirect bypass to a denial of service in ExpressionLanguage. Versions 8.1.12, 7.4.24, 6.4.51, and 5.4.57 close every one of them.

Symfony corrige dix failles de sécurité, dont un contournement de redirection de connexion

Symfony published ten security advisories on November 25, 2026, an unusually dense batch for a single day. The most concerning one is a bypass of the protection against post-login redirects to a third-party domain, a phishing vector that becomes exploitable as soon as framework.session.cookie_domain is set. Versions 8.1.12, 7.4.24, 6.4.51, and 5.4.57 fix all ten issues.

The Most Sensitive Fix: Login Redirect

Tracked as CVE-2026-134790, this flaw affects HttpUtils::createRedirectResponse(), the method that restricts post-login redirects to the request’s own host. When framework.session.cookie_domain is set, redirects to a subdomain of that domain are also allowed, but the check extracted the target host by stopping at the first / character, while a browser also stops reading the host at a \, a ?, or a #. A target like the one below passed the check while still sending the browser to a completely different domain.

GET /login_check?_target_path=https://evil.test?.example-app.com HTTP/1.1
Host: app.example-app.com

With form_login‘s default success and failure handlers, which redirect to _target_path or _failure_path, an attacker can craft a login link that looks legitimate but sends the victim to an attacker-controlled site afterward, for example to re-enter their password. This is the second time this restriction mechanism has needed a fix: an earlier one, CVE-2017-16652, turned out to be incomplete. The same lesson applies to anything already covered for locking down signed URLs against reuse: any validation built around a URL format deserves to be retested with every new release.

Nine More Fixes, From Denial of Service to Config Leaks

CVEComponentImpact
2026-134792HttpClientthe Proxy header hijacks the outgoing proxy of CLI-SAPI workers
2026-134791ExpressionLanguageunclosed comments make lexing quadratic on untrusted expressions
2026-133762HttpKernelwithout APP_RUNTIME_MODE, the full exception stack is returned in production
2026-133761SerializerCsvEncoder nests rows per header key separator, a small CSV can crash PHP
2026-133760ExpressionLanguagenested short ternaries make the depth check exponential
2026-133759Security (Doctrine Bridge)an outdated remember-me token from the same series is still accepted, even after logout
2026-133758 / 133757HttpClientNoPrivateNetworkHttpClient ignores or leaks the decorated client’s options on redirect
2026-133756HtmlSanitizera meta refresh URL preceded by a vertical tab slips past filtering

Why Two of the Ten Fixes Are Already Patch-Ups

Beyond the sheer volume, one thing stands out: two of these ten advisories fix an earlier fix that turned out to be incomplete. CVE-2026-134790 closes a gap left by CVE-2017-16652, and CVE-2026-133756 closes a gap left by an earlier HtmlSanitizer fix. A check built around parsing a string, whether a URL or an HTML attribute, is hard to close completely on the first try, especially given how browsers differ in what they tolerate.

Updating Without Breaking Production

A patch-version bump (8.1.11 → 8.1.12, for instance) shouldn’t touch any public API, which makes a direct update via Composer safe. The real attention should go to configuration: any project that sets framework.session.cookie_domain needs updating first, and any project exposing HTTP workers under CLI-SAPI needs to confirm APP_RUNTIME_MODE is set before treating this as resolved. A lsp:check diagnostic wired into CI, as described in this guide on Symfony LSP in continuous integration, can catch an inconsistent session configuration before it ever reaches production.

Two of the ten fixes published on November 25 patch a thread that a previous advisory hadn’t fully closed.

Immediate priority if framework.session.cookie_domain is set in config/packages/framework.yaml: update before anything else, this flaw is a direct phishing vector against users who just logged in.

What to Remember

Symfony closed ten flaws in a single day, the most serious letting a freshly logged-in user be redirected to a third-party domain. Versions 8.1.12, 7.4.24, 6.4.51, and 5.4.57 fix all of them. Two of the ten advisories show that fixes once thought sufficient weren’t quite enough, a good reason to keep security dependencies current continuously rather than in batches.

What catches my attention in this batch isn’t the CVE count but their nature: two of the ten fixes are patching over a patch applied years earlier. On the Symfony projects I support, I now automate security-dependency updates in CI rather than handling them in a monthly manual review — the gap between a CVE’s disclosure and its exploitation is shrinking too fast to afford waiting — Simon Janvier.

Further reading: the redirect bypass is documented in detail on the Symfony security blog.

Read next