# GHSA-28VH-P99H-PQC7: CachingHttpClient Shares Responses Between Users When Credentials Are Set With withOptions()

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

## Tracked as

- [CVE-2026-133750](https://cve.now/CVE-2026-133750.md): Symfony HTTP Client cached responses leaked between users in CachingHttpClient

## Affected versions

- symfony/http-client (Packagist): from 7.4, fixed in 7.4.24
- symfony/http-client (Packagist): from 8, fixed in 8.1.12
- symfony/symfony (Packagist): from 7.4, fixed in 7.4.24
- symfony/symfony (Packagist): from 8, fixed in 8.1.12

## Description

### Description

Since Symfony 7.4, `CachingHttpClient` can cache the responses of HTTP clients, for example when `caching` is enabled in `framework.http_client`. Its `withOptions()` method passes the options to the decorated client only. So credentials set with `withOptions()`, like `auth_bearer`, `auth_basic`, 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:

```php
$client->withOptions(['auth_bearer' => $aliceToken])->request('GET', 'https://api.example.com/me'); // Alice's profile
$client->withOptions(['auth_bearer' => $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 `max_redirects`, `proxy`, `peer_fingerprint`, `local_cert`, `timeout`, `on_progress` and `body`.

### Resolution

`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 `max_retries`, are still passed to them only.

Client certificates, proxies and `auth_ntlm` 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.

The patch for this issue is available [here](https://github.com/symfony/symfony/commit/e9b64eb3a3ddba6ac7b98e31e9f601235660730f) for branch 7.4 (and forward-ported to 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-28vh-p99h-pqc7

Page: https://cve.now/GHSA-28VH-P99H-PQC7

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