Where
-Infinity
0

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