# GHSA-P5HC-HV32-FGXG: NoPrivateNetworkHttpClient Makes the Client It Decorates Ignore Its Own Default Options, Like Certificate Pinning

- Database: GitHub
- Severity: CVSS 6.3 (Medium)
- Published: 2026-11-25
- Modified: 2026-11-25

## Tracked as

- [CVE-2026-133758](https://cve.now/CVE-2026-133758.md): Symfony HTTP Client certificate pinning bypass in HTTP client decorator

## Affected versions

- symfony/http-client (Packagist): from 5.4.48, fixed in 5.4.57
- symfony/symfony (Packagist): from 5.4.48, fixed in 5.4.57
- symfony/http-client (Packagist): from 6.4.16, fixed in 6.4.51
- symfony/symfony (Packagist): from 6.4.16, fixed in 6.4.51
- symfony/http-client (Packagist): from 7.1.9, fixed in 7.4.24
- symfony/symfony (Packagist): from 7.1.9, fixed in 7.4.24
- symfony/http-client (Packagist): from 8, fixed in 8.1.12
- symfony/symfony (Packagist): from 8, fixed in 8.1.12

## Description

### 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.

### Resolution

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.

The patches for this issue are available [here](https://github.com/symfony/symfony/commit/40640dd0c312f267811e18e56cb0f9cb2feedeb9) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).

### Credits

We would like to thank [Vincent Cassiau](https://github.com/VincentCassiau) (CyberVanguard) for reporting the issue and Nicolas Grekas for providing the fix.

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-p5hc-hv32-fgxg

Page: https://cve.now/GHSA-P5HC-HV32-FGXG

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