CVE-2026-133750 in http-client
Summary
by MITRE • 11/25/2026
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 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.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified within Symfony versions 7.4 and earlier involves a critical flaw in the CachingHttpClient component where authentication credentials are inadvertently excluded from cache key generation, leading to severe information disclosure through cross-user data leakage. This issue arises specifically when applications enable response caching on an HTTP client instance while simultaneously setting per-request or per-client credentials using the withOptions method for attributes such as auth_bearer, auth_basic, Authorization headers, Cookie headers, and other security-sensitive configurations like proxy settings, peer fingerprints, local certificates, timeouts, progress handlers, and body content. The core technical flaw lies in the fact that CachingHttpClient forwards these options to the underlying decorated client but fails to incorporate them into the hash used for generating cache keys. Consequently, requests authenticated with distinct user credentials result in identical cache keys because the distinguishing security parameters are ignored during key derivation. This architectural oversight means that a response cached under one set of credentials is subsequently served to subsequent requests made by different users who possess valid authentication tokens but do not influence the cache lookup mechanism.
The operational impact of this vulnerability is profound, as it allows an attacker or any subsequent user to retrieve sensitive data belonging to another authenticated user simply by making a request to the same endpoint after the initial response has been cached. For instance, if Alice requests her profile with a valid bearer token and that response is deemed cacheable, Bob can subsequently request his own profile using his distinct bearer token but receive Alice's private data from the shared cache store. This behavior violates fundamental principles of access control and session isolation in web applications. Furthermore, the vulnerability extends beyond just authentication headers; it also encompasses other options such as max_redirects, proxy configurations, peer fingerprints, local certificates, timeouts, on_progress callbacks, and request bodies, which were previously ignored by CachingHttpClient when caching was enabled because the component forwarded requests with its own default settings rather than merging them into the cache logic. This comprehensive exclusion of security-relevant context from the caching mechanism creates a broad attack surface for data exfiltration across multiple types of sensitive HTTP interactions.
From an industry standards perspective, this vulnerability maps directly to CWE-200: Information Exposure and CWE-16: Configuration, as it involves improper configuration leading to exposure of restricted information. In terms of the MITRE ATT&CK framework, this behavior aligns with T1530: Data from Local System or potentially T1078: Valid Accounts if exploited in a multi-user environment where one user can access another's resources via cache poisoning effects. The failure to distinguish between requests based on authentication context represents a classic case of insecure direct object reference facilitated by caching mechanisms, which is often categorized under CWE-642: External Control of Critical State Data when considering the state management aspect of HTTP clients. Additionally, the lack of separation for client-specific headers and certificates in shared cache pools highlights issues related to CWE-15: Environmental Dependency Errors where the system fails to account for varying environmental contexts that should alter data handling procedures.
Mitigation strategies require immediate updates to Symfony versions 7.4 or later where this issue has been addressed by modifying CachingHttpClient::withOptions() to properly merge standard options into its default configuration, ensuring they are included in cache key generation and shared cache rules. Developers must ensure that all security-sensitive parameters such as authentication tokens, custom headers, proxy settings, and client certificates are factored into the caching logic so that each unique combination of credentials results in a distinct cache entry. For applications unable to upgrade immediately, workarounds include disabling response caching for endpoints that require strict user isolation or implementing application-level caching strategies that explicitly account for user identity and authentication context before storing responses. It is also advisable to review any shared cache pools used by multiple HTTP clients within the FrameworkBundle environment, ensuring that each client operates in its own isolated namespace to prevent cross-client data leakage through misconfigured headers or certificates. Regular security audits focusing on HTTP client configurations and caching policies can help identify similar vulnerabilities where context-dependent parameters are overlooked during state persistence operations.