# GHSA-8CWW-V5FG-2MF9: Inline Fragments Let Untrusted Forwarded Headers Change the URLs of asset() and absolute\_url(): Incomplete Fix for CVE-2026-123339

- Database: GitHub
- Severity: CVSS 7.0 (High)
- Published: 2026-11-25
- Modified: 2026-11-25

## Tracked as

- [CVE-2026-133743](https://cve.now/CVE-2026-133743.md): symfony/http-kernel forwarded header spoofing in asset() and absolute\_url()

## Affected versions

- symfony/http-kernel (Packagist): fixed in 5.4.57
- symfony/http-kernel (Packagist): from 6, fixed in 6.4.51
- symfony/http-kernel (Packagist): from 7, fixed in 7.4.24
- symfony/http-kernel (Packagist): from 8, fixed in 8.1.12
- symfony/symfony (Packagist): fixed in 5.4.57
- symfony/symfony (Packagist): from 6, fixed in 6.4.51
- symfony/symfony (Packagist): from 7, fixed in 7.4.24
- symfony/symfony (Packagist): from 8, fixed in 8.1.12

## Description

### 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.

### Resolution

`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.

The patches for this issue are available [here](https://github.com/symfony/symfony/commit/2bba2bdaf3d33b897c74a81eb96b28d7b0076ee4) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).

### Credits

We would like to thank [Vincent Cassiau](https://github.com/VincentCassiau) (CyberVanguard) for reporting the issue, [Amimul Ihsan](https://github.com/aimahdi) for reporting it independently, and Nicolas Grekas for providing the fix.

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-8cww-v5fg-2mf9

Page: https://cve.now/GHSA-8CWW-V5FG-2MF9

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
