# CVE-2026-123339: Symfony: Inline Fragments Let Untrusted Forwarded Headers Set the Host, Scheme and Port of the URLs Generated for the Main Request

- Severity: Low 2.3 (CVSS:4.0, scored by Checkmarx) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-11-06T14:40:34.836Z
- Modified: 2026-12-01T21:30:04.455Z
- Also known as: GHSA-wg5q-m2ww-f3c9
- Weaknesses: CWE-348
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Checkmarx

## Description

Improper trust of forwarded headers in RouterListener::onKernelFinishRequest() in Symfony HttpKernel versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11 allows a remote attacker to control the host, scheme, and port of absolute URLs generated for the rest of the request, poisoning links in pages stored by a shared cache and in e-mails sent after the page was rendered.When a page renders an inline fragment (render() in Twig, or an ESI tag rendered inline), SubRequestHandler temporarily adds 127.0.0.1 to the trusted proxies, and RouterListener rebuilds the router context from the main request while that trust is still active, so the X-Forwarded-* and Forwarded headers of a request whose client address is 127.0.0.1 are trusted even though that address is not a configured trusted proxy. From that point on, every absolute URL the router generates for the rest of the main request takes its host, scheme, and port from headers sent by the client, including URLs produced by url() in Twig and by UrlGeneratorInterface::ABSOLUTE_URL.

Applications are affected when they are reached over HTTP from 127.0.0.1, for example behind a TLS terminator, reverse proxy, local HTTP cache, or sidecar proxy on the same host, and that proxy passes the client’s forwarded headers along. With the default configuration (framework.trusted_proxies unset), all forwarded headers, including X-Forwarded-Host, are trusted during that window. Applications served through php-fpm, mod_php, or a proxy on another host are not affected. When framework.trusted_hosts is configured, a forwarded host outside the list is rejected, but the scheme and port can still be changed.

(As written by CVE List.)

## Affected

- symfony/http-kernel: before 5.4.56; from 6.0.0 before 6.4.50; from 7.0.0 before 7.4.23; from 8.0.0 before 8.1.11
- symfony/http-kernel (Packagist): before 5.4.56; from 6.0.0 before 6.4.50; from 7.0.0 before 7.4.23; from 8.0.0 before 8.1.11
- symfony/symfony (Packagist): before 5.4.56; from 6.0.0 before 6.4.50; from 7.0.0 before 7.4.23; from 8.0.0 before 8.1.11

## Every score

- Checkmarx: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:N/SA:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:N/SA:N`

## References

- <https://github.com/symfony/symfony/security/advisories/GHSA-wg5q-m2ww-f3c9> (third-party-advisory, web)
- <https://github.com/symfony/symfony/commit/4b4e683b2c280083c6758bb776af952076add612> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-123339> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-kernel/CVE-2026-123339.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-123339.yaml> (web)
- <https://github.com/symfony/symfony> (package)
- <https://github.com/symfony/symfony/releases/tag/v5.4.56> (web)
- <https://github.com/symfony/symfony/releases/tag/v6.4.50> (web)
- <https://github.com/symfony/symfony/releases/tag/v7.4.23> (web)
- <https://github.com/symfony/symfony/releases/tag/v8.1.11> (web)

## Sources

- CVE List: [CVE-2026-123339](https://www.cve.org/CVERecord?id=CVE-2026-123339), CVE Terms of Use, modified 2026-11-06
- GitHub Advisory Database: [GHSA-wg5q-m2ww-f3c9](https://github.com/advisories/GHSA-wg5q-m2ww-f3c9), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-123339](https://nvd.nist.gov/vuln/detail/CVE-2026-123339), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-123339 · Whole record: https://cve.day/CVE-2026-123339.json · Rebuilt by cve.day 2026-12-01T21:47:25.999Z
