CVE-2022-29248Guzzlephp Guzzle
High 8.1 No auth needed
Follow: this CVE · Guzzlephp · Guzzlephp Guzzle We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.1
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- No
- Published
- May 25, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Guzzle.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | drupal/core |
≥ 8.0.0 < 9.2.20 |
9.2.20 |
composer require "drupal/core:^9.2.20" |
| Packagist | drupal/core |
≥ 9.3.0 < 9.3.14 |
9.3.14 |
composer require "drupal/core:^9.3.14" |
| Packagist | guzzlehttp/guzzle |
< 6.5.6 |
6.5.6 |
composer require "guzzlehttp/guzzle:^6.5.6" |
| Packagist | guzzlehttp/guzzle |
≥ 7.0.0 < 7.4.3 |
7.4.3 |
composer require "guzzlehttp/guzzle:^7.4.3" |
Per OSV / GitHub Advisories (DRUPAL-CORE-2022-010, GHSA-cwmx-hcrq-mhc3). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| guzzlephp | guzzle | < 6.5.6 |
| guzzlephp | guzzle | ≥ 7.0.0 < 7.4.3 |
| drupal | drupal | ≥ 9.2.0 < 9.2.20 |
| drupal | drupal | ≥ 9.3.0 < 9.3.14 |
| debian | debian_linux | 11.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Issue Tracking Patch Third Party Advisory
- github.com Third Party Advisory
- www.debian.org Third Party Advisory
- www.drupal.org Patch Third Party Advisory