NoPrivateNetworkHttpClient Makes the Client It Decorates Ignore Its Own Default Options, Like Certificate Pinning

State
Published
Severity
6.3 Medium
Published
Nov 25, 2026
Updated
Nov 25, 2026
Reserved
Nov 20, 2026

Read the record on cve.org

Description

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 peer_fingerprint, a private cafile or a minimum crypto_method 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 max_redirects options were lost the same way. Since Symfony 8.1, DnsResolvingHttpClient is affected too.

This also applies to the default_options 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.

ProductVersions
symfony/http-client Symfony5.4.48 to before 5.4.57 Affected6.4.16 to before 6.4.51 Affected7.1.9 to before 7.4.24 Affected8.0.0 to before 8.1.12 Affected
symfony/symfony Symfony5.4.48 to before 5.4.57 Affected6.4.16 to before 6.4.51 Affected7.1.9 to before 7.4.24 Affected8.0.0 to before 8.1.12 Affected

Weaknesses

  • CWE-295 Improper Certificate Validation

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.