Read the docs

Symfony CachingHttpClient shares cached responses between users

Priority LOW 28CWE-524Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

Symfony symfony/http-client and symfony/symfony from 7.4.0 before 7.4.24 and from 8.0.0 before 8.1.12 are affected. CachingHttpClient::withOptions() passes credentials such as auth_bearer only to the decorated client, so they are missing from the cache key (CWE-524). When an application enables caching and sets per-user credentials this way, a remote user can receive a cacheable response fetched for another user.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

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.

Why it matters now

EPSS 0.0043 28th percentileScored 2026-11-30
Fix Fixed symfony/http-client (Symfony): 7.4.24, 8.1.12symfony/symfony (Symfony): 7.4.24, 8.1.12

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
symfonysymfony/http-client7.4.0 to before 7.4.24; 8.0.0 to before 8.1.127.4.24, 8.1.12Patch availableCNA
symfonysymfony/symfony7.4.0 to before 7.4.24; 8.0.0 to before 8.1.127.4.24, 8.1.12Patch availableCNA
  • symfony/http-client Vendorsymfony Affected 7.4.0 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 7.4.24, 8.1.12 Patch available CNA
  • symfony/symfony Vendorsymfony Affected 7.4.0 to before 7.4.24; 8.0.0 to before 8.1.12 Fixed in 7.4.24, 8.1.12 Patch available CNA

Remediation

Upgrade symfony/http-client to 7.4.24 or 8.1.12, and upgrade symfony/symfony to 7.4.24 or 8.1.12.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA symfony/http-client (Symfony) Fixed in 7.4.24, 8.1.12
  • Fix · CNA symfony/symfony (Symfony) Fixed in 7.4.24, 8.1.12

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    symfony/symfony 7.4.24, 8.1.12

    7 records Highest priority Priority LOW 7 LOW

    Other records, highest priority first

    • TI-2026-98152 Unclosed comments make Symfony ExpressionLanguage lexer quadraticPriority LOW 39
    • TI-2026-98139 Symfony Mailer require_tls check is skipped on HELO fallbackPriority LOW 29
    • TI-2026-98132 JsonPath Queries Hold the Process Through Duplicated Nodes and Repeated WorkPriority LOW 29

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-133750

References

  • TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
  • TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
  • TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
  • TI-2022-08704 Symfony storing cookie headers in HttpCache CVSS 3.1HIGH 8.8
  • TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHP CVSS 4.0HIGH 8.7
  • TI-2026-98148 Nested short ternaries make the Symfony expression parser hang CVSS 4.0HIGH 8.7
See all 129 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences