{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-133750","assignerOrgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","state":"PUBLISHED","assignerShortName":"Symfony","dateReserved":"2026-11-20T14:01:43.157Z","datePublished":"2026-11-25T10:00:10.484Z","dateUpdated":"2026-11-25T10:00:10.484Z"},"containers":{"cna":{"providerMetadata":{"orgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","shortName":"Symfony","dateUpdated":"2026-11-25T10:00:10.484Z"},"title":"CachingHttpClient Shares Responses Between Users When Credentials Are Set With withOptions()","datePublic":"2026-11-25T09:36:10.000Z","descriptions":[{"lang":"en","value":"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:\n\n$client->withOptions(['auth_bearer' => $aliceToken])->request('GET', 'https://api.example.com/me'); // Alice's profile\n$client->withOptions(['auth_bearer' => $bobToken])->request('GET', 'https://api.example.com/me');   // Alice's profile, from the cache\n\nApplications 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.\n\nMost 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.\n\nCachingHttpClient::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.\n\nClient 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.","supportingMedia":[{"type":"text/markdown","base64":false,"value":"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:\n\n```php\n$client->withOptions(['auth_bearer' => $aliceToken])->request('GET', 'https://api.example.com/me'); // Alice's profile\n$client->withOptions(['auth_bearer' => $bobToken])->request('GET', 'https://api.example.com/me');   // Alice's profile, from the cache\n```\n\nApplications 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.\n\nMost 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`.\n\n`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.\n\nClient 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."}]}],"affected":[{"vendor":"Symfony","product":"symfony/http-client","collectionURL":"https://packagist.org","packageName":"symfony/http-client","repo":"https://github.com/symfony/symfony","defaultStatus":"unaffected","versions":[{"version":"7.4.0","status":"affected","lessThan":"7.4.24","versionType":"semver"},{"version":"8.0.0","status":"affected","lessThan":"8.1.12","versionType":"semver"}]},{"vendor":"Symfony","product":"symfony/symfony","collectionURL":"https://packagist.org","packageName":"symfony/symfony","repo":"https://github.com/symfony/symfony","defaultStatus":"unaffected","versions":[{"version":"7.4.0","status":"affected","lessThan":"7.4.24","versionType":"semver"},{"version":"8.0.0","status":"affected","lessThan":"8.1.12","versionType":"semver"}]}],"problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-524","description":"CWE-524 Use of Cache Containing Sensitive Information","type":"CWE"}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","baseScore":6.3,"baseSeverity":"MEDIUM"}}],"references":[{"url":"https://symfony.com/cve-2026-133750","name":"CVE-2026-133750","tags":["vendor-advisory"]},{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-28vh-p99h-pqc7","name":"GHSA-28vh-p99h-pqc7","tags":["vendor-advisory"]},{"url":"https://github.com/symfony/symfony/commit/e9b64eb3a3ddba6ac7b98e31e9f601235660730f","tags":["patch"]}],"credits":[{"lang":"en","value":"Nicolas Grekas","type":"remediation developer"}],"source":{"advisory":"GHSA-28vh-p99h-pqc7","discovery":"UNKNOWN"},"x_generator":{"engine":"symfony/ghsa-to-cve"}}}}