CVE-2026-133743
Published:November 25, 2026
Updated:November 26, 2026
The fix for CVE-2026-123339 (GHSA-wg5q-m2ww-f3c9) restores the router context of the main request after an inline fragment, but the cause of that issue is still there. A page can render an inline fragment with render() in Twig, or with an ESI tag when no gateway cache is used. While the fragment runs, SubRequestHandler adds 127.0.0.1 to the trusted proxies of every request. Code that reads the main request during that time trusts its X-Forwarded-* and Forwarded headers if the main request came from 127.0.0.1.
Symfony itself reads the main request there:
- asset() takes the base path and the scheme of the main request. With X-Forwarded-Prefix: //evil.example, asset('build/app.js') returns //evil.example/build/app.js, a script loaded from another host. Request::getBasePath() keeps its first result, so when it's first computed inside the fragment, the later asset() calls of the page return such URLs too.
- absolute_url() in Twig, through UrlHelper, takes the host and the scheme of the main request from X-Forwarded-Host and X-Forwarded-Proto.
When a shared cache stores the page, every visitor gets these URLs. With asset(), the page then runs scripts from a host chosen by the attacker.
This affects applications reached over HTTP from 127.0.0.1 when that address isn't a trusted proxy. That's the case behind a TLS terminator, a reverse proxy or an HTTP cache running on the same host. When framework.trusted_proxies is not configured, which is the default, every forwarded header is trusted during that window, X-Forwarded-Prefix included. Configuring framework.trusted_hosts doesn't help with asset(), since the prefix is not a host. Applications that get requests directly through php-fpm or mod_php are not affected, and neither are those behind a proxy on another host. REMOTE_ADDR is not 127.0.0.1 there.
SubRequestHandler doesn't change the trusted proxies of every request anymore. Only the requests it builds, and the requests copied from them, trust 127.0.0.1. While a fragment renders, the main request keeps ignoring the forwarded headers sent by the client.
symfony/http-kernel now requires the version of symfony/http-foundation that contains this fix.
Affected Packages
https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v2.7.49 <v5.4.57 || >=v2.8.44 <v5.4.57 || =v3.3.18 <v5.4.57 || >=v3.4.14 <v5.4.57 || >=v4.0.14 <v5.4.57 || >=v4.1.3 <v5.4.57 || >=v5.0.0-BETA1 <v5.4.57Fix Suggestion:
Update to version v5.4.57https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v6.0.0-BETA1 <v6.4.51Fix Suggestion:
Update to version v6.4.51https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v7.0.0-BETA1 <v7.4.24Fix Suggestion:
Update to version v7.4.24https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v8.2.0-BETA1 <v8.2.0-RC1Fix Suggestion:
Update to version v8.2.0-RC1https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v8.0.0-BETA1 <v8.1.12Fix Suggestion:
Update to version v8.1.12symfony/http-kernel (PHP):
Affected version(s) >=v5.0.0-BETA1 <v5.4.57 || >=v2.8.44 <v5.4.57 || >=v3.4.14 <v5.4.57 || >=v4.0.14 <v5.4.57 || >=v4.1.3 <v5.4.57 || >=v2.7.49 <v5.4.57 || =v3.3.18 <v5.4.57Fix Suggestion:
Update to version v5.4.57symfony/symfony (PHP):
Affected version(s) >=v7.0.0-BETA1 <v7.4.24Fix Suggestion:
Update to version v7.4.24symfony/symfony (PHP):
Affected version(s) >=v6.0.0-BETA1 <v6.4.51Fix Suggestion:
Update to version v6.4.51symfony/symfony (PHP):
Affected version(s) >=v5.0.0-BETA1 <v5.4.57 || =v3.3.18 <v5.4.57 || >=v2.8.44 <v5.4.57 || >=v3.4.14 <v5.4.57 || >=v4.0.14 <v5.4.57 || >=v2.7.49 <v5.4.57 || >=v4.1.3 <v5.4.57Fix Suggestion:
Update to version v5.4.57symfony/http-kernel (PHP):
Affected version(s) >=v8.0.0-BETA1 <v8.1.12Fix Suggestion:
Update to version v8.1.12symfony/http-kernel (PHP):
Affected version(s) >=v7.0.0-BETA1 <v7.4.24Fix Suggestion:
Update to version v7.4.24symfony/symfony (PHP):
Affected version(s) >=v8.0.0-BETA1 <v8.1.12Fix Suggestion:
Update to version v8.1.12symfony/symfony (PHP):
Affected version(s) >=v8.2.0-BETA1 <v8.2.0-RC1Fix Suggestion:
Update to version v8.2.0-RC1symfony/http-kernel (PHP):
Affected version(s) >=v6.0.0-BETA1 <v6.4.51Fix Suggestion:
Update to version v6.4.51symfony/http-kernel (PHP):
Affected version(s) >=v8.2.0-BETA1 <v8.2.0-RC1Fix Suggestion:
Update to version v8.2.0-RC1Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Use of Less Trusted Source
EPSS
Base Score:
0.25