# GHSA-CJFX-X9PC-Q4RX: HttpClient Lets the Proxy Header of a Request Choose the Proxy of Outgoing Requests in HTTP Workers That Run Under the CLI SAPI

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

## Tracked as

- [CVE-2026-134792](https://cve.now/CVE-2026-134792.md): Symfony HTTP Client request interception via proxy header in CLI workers

## Affected versions

- symfony/http-client (Packagist): from 4.3, fixed in 5.4.57
- symfony/http-client (Packagist): from 6, fixed in 6.4.51
- symfony/http-client (Packagist): from 7, fixed in 7.4.24
- symfony/http-client (Packagist): from 8, fixed in 8.1.12
- symfony/symfony (Packagist): from 4.3, 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

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.

### Resolution

On the CLI SAPI, `HTTP_PROXY` is now read from the environment with `$_ENV` and `getenv()`, never from `$_SERVER`. Other SAPIs still ignore it.

The patch for this issue is available [here](https://github.com/symfony/symfony/commit/3684fa9d43502edbd70406bdc94eae2d1aac5c97) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).

### Credits

We would like to thank Nicolas Grekas for reporting the issue and providing the fix.

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-cjfx-x9pc-q4rx

Page: https://cve.now/GHSA-CJFX-X9PC-Q4RX

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