Live threats

All CVEs / Guzzlephp

CVE-2022-29248Guzzlephp Guzzle

High 8.1 No auth needed

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
Weakness (CWE)
CWE-200, CWE-565
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Guzzle.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
guzzlephpguzzle< 6.5.6
guzzlephpguzzle≥ 7.0.0 < 7.4.3
drupaldrupal≥ 9.2.0 < 9.2.20
drupaldrupal≥ 9.3.0 < 9.3.14
debiandebian_linux11.0

Official sources

References

Links published by the sources. Open them with care.