Security mailing lists by PureSourceCode

CVE-2026-123339

LOW 2.3CVSS 4.0

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

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.

Published
6 Nov 2026
Last modified
1 Dec 2026
Assigned by
596c5446-0ce5-4ba2-aa66-48b3b757a647
NVD status
Awaiting Analysis
Weakness
CWE-348
Also known as
GHSA-wg5q-m2ww-f3c9
Sources
NVDJSONOSV GHSA-wg5q-m2ww-f3c9JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 596c5446-0ce5-4ba2-aa66-48b3b757a647 (Secondary) CVSS 4.0 LOW 2.3 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Packagist symfony/http-kernel < 5.4.56 5.4.56
OSV Packagist symfony/http-kernel >= 6.0.0, < 6.4.50 6.4.50
OSV Packagist symfony/http-kernel >= 7.0.0, < 7.4.23 7.4.23
OSV Packagist symfony/http-kernel >= 8.0.0, < 8.1.11 8.1.11
OSV Packagist symfony/symfony < 5.4.56 5.4.56
OSV Packagist symfony/symfony >= 6.0.0, < 6.4.50 6.4.50
OSV Packagist symfony/symfony >= 7.0.0, < 7.4.23 7.4.23
OSV Packagist symfony/symfony >= 8.0.0, < 8.1.11 8.1.11

References

History

  • 1 Dec 2026 22:45 UTC · OSV: first stored (published 1 Dec 2026)
  • 25 Nov 2026 21:23 UTC · NVD: first stored (published 6 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.