symfony/http-kernel forwarded header spoofing in asset() and absolute_url()
Affects symfony/http-kernel and symfony/symfony when inline fragments render over HTTP from 127.0.0.1 without framework.trusted_proxies configured. Fixed in 5.4.57, 6.4.51, 7.4.24 and 8.1.12.
- Exploited
- No known exploitation
- Fix
- Fixed in 5.4.57, 6.4.51, 7.4.24, 8.1.12
- Who is exposed
- Default setups
Summary
Symfony's http-kernel and symfony packages let a remote attacker, without logging in, change the URLs that asset() and absolute_url() generate by sending forged X-Forwarded-* and Forwarded headers while an inline fragment renders. If a shared cache stores the page, every visitor gets those URLs, and the page can load scripts from a host the attacker chooses.
Written by a model
Original description
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.
Who should check
Teams on symfony/http-kernel or symfony/symfony before the fixed releases that render inline fragments and sit behind a same-host TLS terminator, reverse proxy or HTTP cache.
Not fixed by: Configuring framework.trusted_hosts does not fix the asset() prefix issue.
“Symfony HTTP Kernel versions <5.4.57, >=6, <6.4.51, >=7, <7.4.24, >=8, <8.1.12 are affected by this security issue.”
What to do
Check every install: default setups are affected.
Upgrade to a fixed version: 5.4.57, 6.4.51, 7.4.24, 8.1.12.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-133743 (Inline Fragments Let Untrusted Forwarded Headers Change the URLs of asset() and absolute_url(): Incomplete Fix for CVE-2026-123339), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-133743 (entry last updated 2026-11-25):
Affected:
- Packagist package symfony/http-kernel: fixed in 5.4.57; from 6.0.0, fixed in 6.4.51; from 7.0.0, fixed in 7.4.24; from 8.0.0, fixed in 8.1.12
- Packagist package symfony/symfony: fixed in 5.4.57; from 6.0.0, fixed in 6.4.51; from 7.0.0, fixed in 7.4.24; from 8.0.0, fixed in 8.1.12
Fixed versions: 5.4.57, 6.4.51, 7.4.24, 8.1.12.
Conditions (all must be true for the bug to be hit):
- A page renders an inline fragment with render() in Twig, or an ESI tag when no gateway cache is used. (source: https://symfony.com/blog/cve-2026-133743-inline-fragments-let-forwarded-headers-change-the-urls-of-asset-and-absolute-url-incomplete-fix-for-cve-2026-123339)
- The application is reached over HTTP from 127.0.0.1 and that address is not a trusted proxy (e.g. behind a TLS terminator, reverse proxy or HTTP cache on the same host). (source: https://symfony.com/blog/cve-2026-133743-inline-fragments-let-forwarded-headers-change-the-urls-of-asset-and-absolute-url-incomplete-fix-for-cve-2026-123339)
- framework.trusted_proxies is not configured, which is the default. (source: https://symfony.com/blog/cve-2026-133743-inline-fragments-let-forwarded-headers-change-the-urls-of-asset-and-absolute-url-incomplete-fix-for-cve-2026-123339)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-133743 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-133743 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (Packagist): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://symfony.com/cve-2026-133743
- https://github.com/symfony/symfony/security/advisories/GHSA-8cww-v5fg-2mf9
- https://github.com/symfony/symfony/commit/2bba2bdaf3d33b897c74a81eb96b28d7b0076ee4
- https://symfony.com/blog/cve-2026-133743-inline-fragments-let-forwarded-headers-change-the-urls-of-asset-and-absolute-url-incomplete-fix-for-cve-2026-123339
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-133743
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-133743"}.Affected versions
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure22/25Default setups, reachable over the network without a login
- Reach10/20Affects Packagist packages
- Severity7/10CVSS 7.0
- No patch0/5No signal
What would change the score
- Would score about 79 if added to CISA KEV
- Would score about 74 if CISA's SSVC rates exploitation active
Timeline
- CVE published
- First seen by cve.now
Evidence 5
| Kind | Source |
|---|---|
| Vendor advisory 2Establishes: Affected and fixed versions. | |
| Advisory | symfony.com · cve-2026-133743 |
| Advisory | GitHub · symfony/symfony · Advisory GHSA-8cww-v5fg-2mf9 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-133743 |
| Record | NVD · CVE-2026-133743 |
| Other links 1 | |
| Patch | GitHub · symfony/symfony · Commit 2bba2bda |
Questions about CVE-2026-133743
Is CVE-2026-133743 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
Forwarded headers are trusted while inline fragments are rendered, so they can change the URLs that asset() and absolute_url() produce. This is a follow-up to CVE-2026-123339, whose fix was incomplete.
Source: symfony.com
Which versions are affected by CVE-2026-133743?
symfony/http-kernel (Packagist): before 5.4.57; from 6.0.0 before 6.4.51; from 7.0.0 before 7.4.24; from 8.0.0 before 8.1.12. symfony/symfony (Packagist): before 5.4.57; from 6.0.0 before 6.4.51; from 7.0.0 before 7.4.24; from 8.0.0 before 8.1.12.
Source: cve.now feed data
Am I affected, and how do I check?
Affected ranges are symfony/http-kernel and symfony/symfony before 5.4.57, from 6.0.0 before 6.4.51, from 7.0.0 before 7.4.24, and from 8.0.0 before 8.1.12. The setup also matters: a page must render an inline fragment with render() in Twig, or an ESI tag without a gateway cache, and the application must be reached over HTTP from 127.0.0.1 without that address set as a trusted proxy. Check the installed version with composer show symfony/http-kernel and check whether framework.trusted_proxies is configured.
Source: symfony.com
How do I fix CVE-2026-133743?
Upgrade symfony/http-kernel and symfony/symfony to the fixed version for the branch in use: 5.4.57, 6.4.51, 7.4.24 or 8.1.12.
Source: symfony.com
Related
- CVE-2026-134791Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic, Letting Untrusted Expressions Hold a Process
- CVE-2026-133761CsvEncoder Nests Rows Once per Key Separator of a Header, Letting a Small CSV Payload Crash PHP
- CVE-2026-133760Nested Short Ternaries Make the Nesting Check of the Expression Parser Exponential, Letting Untrusted Expressions Hang It
- CVE-2026-134792HttpClient Lets the Proxy Header of a Request Choose the Proxy of Outgoing Requests in HTTP Workers That Run Under the CLI SAPI
- CVE-2026-133757NoPrivateNetworkHttpClient Sends the Default Credentials of the Client It Decorates to Other Origins on Redirects
- CVE-2026-133759Doctrine Remember-Me Token Provider Accepts Outdated Tokens Under the Series of Their Copy, Also After Logout
No corrections so far. Something wrong on this page? Report an error.