Where
-Infinity
0
Severity
8.3
AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

When the proxy option isn't set, HttpClient takes the proxy from environment variables like httpproxy or HTTPPROXY. On web servers, it ignores HTTPPROXY, because PHP puts the Proxy request header there (the httpoxy issue). On the CLI SAPI, it read HTTPPROXY 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, HTTPPROXY is now read from the environment with $ENV and getenv(), never from $SERVER. Other SAPIs still ignore it.

First published (updated )
Severity
8.2
Infoleak
AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Since Symfony 5.4.48, 6.4.16, 7.1.9 and 7.2.0, NoPrivateNetworkHttpClient follows redirects itself, and sends each hop as a new request through the client it decorates. Before a redirect to another origin, it removes the Authorization and Cookie headers it knows about. But the decorated client then added its own default options again. These include the authbasic, authbearer and authntlm credentials, and the Authorization and Cookie headers it was created with. Credentials set with withOptions() on the decorator came back the same way, since the decorator forwards them to the decorated client.

These credentials were then sent to any origin that a response redirected to, for example through an open redirect on the server the application calls. The decorated client alone doesn't send them. The decorator removed the ones passed to request(), but not authntlm. Since Symfony 8.1, DnsResolvingHttpClient follows redirects the same way and is affected too.

With authntlm, curl started the NTLM handshake with the other origin, which could answer with a challenge to get the NTLM response of the application.

On a redirect to another origin, the decorator now passes empty Authorization and Cookie headers and unsets the authbasic, authbearer and authntlm options. The decorated client then can't add its own. Decorators between NoPrivateNetworkHttpClient and the transport, like ScopingHttpClient or CachingHttpClient, can't add theirs either.

First published (updated )
Severity
6.3
AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/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

CVE-2026-133758: NoPrivateNetworkHttpClient Makes the Client It Decorates Ignore Its Own Default Options, Like Certificate Pinning

1 / 4
Source: Packagist
First published (updated )
Severity
6.3
AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Since Symfony 7.4, CachingHttpClient can cache the responses of HTTP clients, for example when caching is enabled in framework.httpclient. Its withOptions() method passes the options to the decorated client only. So credentials set with withOptions(), like authbearer, authbasic, an Authorization header or a Cookie header, reach the server, but CachingHttpClient doesn't see them. They're missing from the cache key. They also miss the rule that keeps a shared cache from storing the responses to requests with an Authorization header. A cacheable response fetched for one user is then served to the next users:

$client->withOptions(['authbearer' => $aliceToken])->request('GET', 'https://api.example.com/me'); // Alice's profile $client->withOptions(['authbearer' => $bobToken])->request('GET', 'https://api.example.com/me'); // Alice's profile, from the cache

Applications are affected when they enable caching on a client, set per-user credentials with withOptions(), and request URLs whose responses are cacheable. Credentials passed to request() aren't affected.

Most other options set with withOptions() were ignored too when caching was enabled, because CachingHttpClient forwarded each request with its own defaults. This includes maxredirects, proxy, peerfingerprint, localcert, timeout, onprogress and body.

CachingHttpClient::withOptions() now also merges the standard options into its own default options. The cache key, the rules of shared caches and the requests it forwards take them into account. Options that only decorated clients know, like maxretries, are still passed to them only.

Client certificates, proxies and authntlm are now part of the cache key too. When several HTTP clients of FrameworkBundle use the same cache pool, each client gets its own namespace in that pool. So clients with different custom headers don't get the responses of each other anymore.

First published (updated )
Severity
6.3
AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Since Symfony 5.4.48, 6.4.16, 7.1.9 and 7.2.0, NoPrivateNetworkHttpClient prepares each request with the default options of the library. The decorator then passes all these options to the decorated client. Every option is then already set, so that client ignores its own default options.

When these defaults restrict TLS trust, the restriction is lost without any error. A client created with peerfingerprint, a private cafile or a minimum cryptomethod refuses a server on its own. Once decorated, the same client connects to that server. Someone on the network path with a certificate that the system trust store accepts can then read and answer the requests. Default proxy and maxredirects options were lost the same way. Since Symfony 8.1, DnsResolvingHttpClient is affected too.

This also applies to the defaultoptions of FrameworkBundle, which configure the innermost client.

The decorator now passes the options given to it, plus the ones it manages itself. The decorated client then applies its own default options again.

First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203