# CVE-2026-134792 - HttpClient Lets the Proxy Header of a Request Choose the Proxy of Outgoing Requests in HTTP Workers That Run Under the CLI SAPI

DevFeed: [CVE-2026-134792 - HttpClient Lets the Proxy Header of a Request Choose the Proxy of Outgoing Requests in HTTP Workers That Run Under the CLI SAPI](<https://devfeed.tech/articles/cve-2026-134792-httpclient-lets-the-proxy-header-of-a-request-choose-the-proxy-of-outgoing-requests-in-http-workers-that-run-under-the-cli-sapi-153662.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-134792>)

Author: cvefeed.io

Published: 2026-11-25T10:17:14Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [proxy](<https://devfeed.tech/topics/proxy.md>), [client library](<https://devfeed.tech/topics/client-library.md>), [Symfony](<https://devfeed.tech/topics/symfony.md>), [Back end](<https://devfeed.tech/topics/backend.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [cli](<https://devfeed.tech/tags/cli.md>), [client](<https://devfeed.tech/tags/client.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-134792](<https://devfeed.tech/tags/cve-2026-134792.md>), [environment](<https://devfeed.tech/tags/environment.md>), [environment-variables](<https://devfeed.tech/tags/environment-variables.md>), [forge](<https://devfeed.tech/tags/forge.md>), [full](<https://devfeed.tech/tags/full.md>), [header](<https://devfeed.tech/tags/header.md>), [headers](<https://devfeed.tech/tags/headers.md>), [http](<https://devfeed.tech/tags/http.md>), [http-proxy](<https://devfeed.tech/tags/http-proxy.md>), [https](<https://devfeed.tech/tags/https.md>), [ignore](<https://devfeed.tech/tags/ignore.md>), [issue](<https://devfeed.tech/tags/issue.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [request](<https://devfeed.tech/tags/request.md>), [sensiolabs](<https://devfeed.tech/tags/sensiolabs.md>), [symfony](<https://devfeed.tech/tags/symfony.md>), [workers](<https://devfeed.tech/tags/workers.md>)

## AI overview

In CLI-SAPI HTTP workers, request headers stored in $_SERVER could be mistaken for the HTTP_PROXY environment variable when HttpClient had no proxy option configured. An attacker could send a Proxy header to route the application's outgoing requests through a chosen proxy. That proxy could read full HTTP requests, including credentials, and forge responses; for HTTPS, it could learn the host and port through CONNECT. The description names NativeHttpClient (since Symfony 4.3.0), AmpHttpClient (since 5.1.0), and CurlHttpClient (since 4.4.40, 5.4.7, and 6.0.7) as affected. The stated change reads HTTP_PROXY from $_ENV and getenv() under CLI SAPI, never from $_SERVER; other SAPIs continue to ignore it.

## Source excerpt

CVE ID :CVE-2026-134792 Published : Nov. 25, 2026, 10:17 a.m. | 3 hours, 7 minutes ago Description :When the proxy option isn't set, HttpClient takes the proxy from environment variables like http_proxy or HTTP_PROXY. On web servers, it ignores HTTP_PROXY, because PHP puts the Proxy request header there (the httpoxy issue). On the CLI SAPI, it read HTTP_PROXY from $_SERVER, where PHP also puts the environment. HTTP workers that run under the CLI SAPI put the headers of each request in $_SERVER too. This is the case of spiral/roadrunner-http, which the RoadRunner runner of php-runtime uses, and of baldinof/roadrunner-bundle and php-pm. A client could then send a Proxy header to choose the proxy of the requests that the application sent while handling its request. That proxy received the full requests to http:// URLs, with their credentials, and could forge the responses. For https:// URLs, it learned the host and port through CONNECT. NativeHttpClient is affected since Symfony 4.3.0, AmpHttpClient since 5.1.0, and CurlHttpClient since 4.4.40, 5.4.7 and 6.0.7. On the CLI SAPI, HTTP_PROXY is now read from the environment with $_ENV and getenv(), never from $_SERVER. Other SAPIs still ignore it. Severity: 8.3 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...