Symfony HttpClient Let a Request Header Choose the Next Proxy
GHSA-cjfx-x9pc-q4rx describes CVE-2026-134792 in Symfony HttpClient. On HTTP workers running under the CLI SAPI, a client-supplied Proxy request header could appear in $_SERVER as HTTP_PROXY. When the application had not configured a proxy explicitly, HttpClient could use that value for outgoing requests.
The bug is a modern form of httpoxy. The web SAPI already avoids trusting HTTP_PROXY from request headers, but CLI workers built with RoadRunner, PHP-PM, and similar runtimes populate $_SERVER with request headers. The fixed code reads the proxy environment through $_ENV and getenv() instead of using the request-derived server array.
The impact depends on whether an application makes outbound HTTP requests while handling the attacker's request. If it does, the chosen proxy can receive complete requests to http:// URLs, including authorization headers and credentials. For https:// destinations the proxy learns the host and port through CONNECT, and could still block or manipulate the connection path. Response forgery is possible when proxying is allowed.
Upgrade to Symfony 5.4.57, 6.4.51, 7.4.24, or 8.1.12, depending on the maintained branch. Inventory ordinary web deployments as well as queue workers, test runners, and custom PHP worker processes. A framework version in composer.lock is not enough if the production images were built before the patch.
After the upgrade, test with a request that includes Proxy: http://127.0.0.1:9, then confirm that an outbound request does not route through it unless the environment configuration explicitly says so. Do not print proxy credentials in logs. Review egress controls and deny unexpected destinations from worker networks.
The patch changes a small environment lookup, but the security model is broad: request metadata and process environment are different trust domains. Bridge them only with an explicit, validated allowlist.
Top comments (0)