Skip to content
DayZeroHub
Medium Not yet writtenCVSS 6.3CVE-2026-133750

CVE-2026-133750: CachingHttpClient Shares Responses Between Users When Credentials Are Set With withOptions()

Symfony symfony/http-client

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-133750: medium-severity vulnerability (CVSS 6.3) in Symfony symfony/http-client.

What happened

Original description from the source: 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: $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. 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 se…

Why it matters

Medium severity, CVSS 6.3.

Affected products and versions

Symfony symfony/http-client >= 7.4.0, < 7.4.24; Symfony symfony/http-client >= 8.0.0, < 8.1.12; Symfony symfony/symfony >= 7.4.0, < 7.4.24; Symfony symfony/symfony >= 8.0.0, < 8.1.12

ProductVersionsFixed in
Symfony symfony/http-client>= 7.4.0, < 7.4.24—
Symfony symfony/http-client>= 8.0.0, < 8.1.12—
Symfony symfony/symfony>= 7.4.0, < 7.4.24—
Symfony symfony/symfony>= 8.0.0, < 8.1.12—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-524

Relevant change history

  1. Published

    Preliminary advisory published.