CVE-2026-67353: Guzzle: Unbounded response cookies risk denial of service

Published Jul 20, 2026
·
Updated

Impact

In affected versions, Guzzle's built-in CookieJar accepts any number of Set-Cookie header fields from one response, with no limit on the size of each field. When a later request matches the stored cookies, Guzzle places every match into one generated Cookie header without limiting the number of cookies or the total header length.

A malicious or compromised server can therefore return many large cookies, causing Guzzle to store attacker-controlled data in memory and copy it into later request headers. This can increase memory use and processing time. It can also make later requests fail when the generated header exceeds a limit in a handler, HTTP implementation, proxy, or destination server. A server on one sibling host, such as attacker.example.com, can also set parent-domain cookies that are later selected for another sibling, such as service.example.com. The denial can therefore affect a different service that uses the same jar.

An application is affected when it enables the built-in cookie support, receives an attacker-controlled response, and retains or reuses the jar. The issue affects both built-in handlers because Guzzle manages these cookies itself instead of using libcurl's native cookie engine. cURL addressed a similar denial-of-service issue in CVE-2022-32205 by limiting the cookies it accepts and sends, but those native limits do not protect Guzzle's separate jar. Applications that do not use cookies, use separate jars for untrusted origins, or use a third-party CookieJarInterface with suitable limits are not affected by this behavior. The demonstrated direct impact is limited to availability. The patch does not impose a lifetime limit on a jar built up over an unlimited number of responses or populated directly by application code.

Patches

The issue is patched in 7.15.1 and later. Starting in that release, the built-in CookieJar ignores a Set-Cookie field value longer than 8,190 bytes and applies at most 50 successful cookie insertions or replacements from one response. When generating a request, it emits at most 150 matching name=value pairs and limits the complete Cookie: header line to 8,190 bytes, including the field name and following space.

These limits follow the same practical shape as cURL's response to CVE-2022-32205. Both bound cookies accepted from one response, cookies added to one request, and generated header size. Guzzle's 8,190-byte incoming field limit is more generous than cURL's current 5,000-byte cookie-line limit. Neither approach adds a global jar quota or an eviction policy. The 8,190-byte incoming boundary is inclusive. Invalid, unrelated, identical, oversized, and deletion fields do not consume the 50-cookie limit. For outgoing requests, Guzzle preserves its existing matching and iteration order. It stops after 150 pairs or before the first matching cookie that would exceed the line limit. The output limits also apply to directly imported cookie state, but that state is not limited when it is added to the jar. Explicit caller-supplied Cookie headers and third-party jar implementations remain the caller's responsibility. Versions before 7.15.1 are affected.

Workarounds

If you cannot upgrade immediately, do not enable a shared built-in cookie jar for requests to untrusted origins. Use separate jars per host or trust boundary, disable cookie handling for untrusted requests, and discard or clear a jar after receiving an untrusted response before it is reused. Applications that must accept cookies from untrusted peers can provide a custom CookieJarInterface implementation that enforces suitable limits.

Guzzle does not use libcurl's cookie engine for cookies stored in a CookieJar. The cURL handler sends the Cookie header that Guzzle's cookie middleware has already built, so libcurl's cookie limits do not apply. Upgrading libcurl therefore does not fix this issue.

References

https://curl.se/docs/CVE-2022-32205.html https://www.rfc-editor.org/rfc/rfc10025.html#section-5.7 https://www.rfc-editor.org/rfc/rfc10025.html#section-5.8.3 https://www.rfc-editor.org/rfc/rfc10025.html#section-6.1

Other sources

Guzzle: Unbounded response cookies risk denial of service

— Packagist

guzzlehttp/guzzle versions before 7.15.1 contain a denial of service vulnerability in the CookieJar that accepts unlimited Set-Cookie header fields with no size restrictions. Attackers can return many large cookies from a malicious server, causing Guzzle to store excessive data in memory and generate oversized Cookie headers that fail in handlers or destination servers.

— MITRE

Affected Software

4 affected componentsFixes available
guzzlehttp/guzzle<7.15.1
composer/guzzlehttp/guzzle<7.15.1
7.15.1
composer/guzzlehttp/guzzle<7.15.1
7.15.1
IBM API Connect V12 OnPrem<=v12.1.0.0 - v12.1.1.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/guzzlehttp/guzzle to a version that resolves this vulnerability.

    Fixed in 7.15.1
  2. Upgrade

    Upgrade guzzlehttp/guzzle to a version that resolves this vulnerability.

    Fixed in 7.15.1
  3. Configuration

    Do not enable a shared built-in cookie jar for requests to untrusted origins; disable cookie handling for untrusted requests if upgrading is not immediately possible.

    Guzzle built-in cookie support cookie handling for untrusted requests = disabled
  4. Compensating control

    Use separate cookie jars per host or trust boundary, or provide a custom CookieJarInterface implementation that enforces suitable limits.

  5. Operational

    Discard or clear a cookie jar after receiving an untrusted response before reusing it.

Event History

Jul 20, 2026
Advisory Published
via GitHub·11:27 PM
Data Sourced
via GitHub·11:27 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·11:27 PM
DescriptionSeverityAffected Software
Aug 1, 2026
CVE Published
via MITRE·12:22 PM
Data Sourced
via MITRE·12:22 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness
Oct 8, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-67353?

CVE-2026-67353 has a medium severity level with a score of 6.9.

2

How do I fix CVE-2026-67353?

To fix CVE-2026-67353, upgrade guzzlehttp/guzzle to version 7.15.1 or later.

3

What type of vulnerability is CVE-2026-67353?

CVE-2026-67353 is classified as a denial of service vulnerability due to unbounded cookie handling.

4

Which versions of guzzlehttp/guzzle are affected by CVE-2026-67353?

CVE-2026-67353 affects guzzlehttp/guzzle versions prior to 7.15.1.

5

What are the potential impacts of CVE-2026-67353?

The potential impact of CVE-2026-67353 includes excessive memory usage due to storing large cookies.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203