Description
Guzzle is a PHP HTTP client. Guzzle prior to versions 6.5.6 and 7.4.3 contains a vulnerability with the cookie middleware. The vulnerability is that it is not checked if the cookie domain equals the domain of the server which sets the cookie via the Set-Cookie header, allowing a malicious server to set cookies for unrelated domains. The cookie middleware is disabled by default, so most library consumers will not be affected by this issue. Only those who manually add the cookie middleware to the handler stack or construct the client with ['cookies' => true] are affected. Moreover, those who do not use the same Guzzle client to call multiple domains and have disabled redirect forwarding are not affected by this vulnerability. Guzzle versions 6.5.6 and 7.4.3 contain a patch for this issue. As a workaround, turn off the cookie middleware.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| guzzle | guzzle | < 6.5.6, >= 7.0.0, < 7.4.3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | guzzle | 7.4.4-1 | — |
| Debian 14 | mediawiki | 1:1.35.7-1 | — |
| Debian 13 | guzzle | 7.4.4-1 | — |
| Debian 13 | mediawiki | 1:1.35.7-1 | — |
| Debian 12 | guzzle | 7.4.4-1 | — |
| Debian 12 | mediawiki | 1:1.35.7-1 | — |
| Debian 11 | mediawiki | 1:1.35.8-1~deb11u1 | DSA-5246-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | guzzle | No fix yet | — |
| Ubuntu 26.04 LTS | guzzle | No fix yet | — |
| Ubuntu 25.10 | guzzle | No fix yet | — |
| Ubuntu 24.04 LTS | guzzle | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | drupal/core | >= 8.0.0, < 9.2.20 · >= 9.3.0, < 9.3.14 | 9.2.20, 9.3.14 | DRUPAL-CORE-2022-010 |
| Packagist | guzzlehttp/guzzle | < 6.5.6 | 6.5.6 | GHSA-cwmx-hcrq-mhc3 |
| Packagist | guzzlehttp/guzzle | >= 7.0.0, < 7.4.3 | 7.4.3 | GHSA-cwmx-hcrq-mhc3 |
Advisories 1
- DSA-5246-1 mediawiki - security update Debian Security (DSA / DLA) · Mar 9, 2026