Security mailing lists by PureSourceCode

CVE-2022-29248

HIGH 8.1CVSS 3.1

Cross-domain cookie leakage in Guzzle

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.

Published
25 May 2022
Last modified
19 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-200CWE-565
Also known as
BIT-drupal-2022-29248DRUPAL-CORE-2022-010GHSA-cwmx-hcrq-mhc3
Sources
NVDJSONOSV DRUPAL-CORE-2022-010JSONOSV GHSA-cwmx-hcrq-mhc3JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 8.0 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 8.0 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.8 AV:N/AC:M/Au:N/C:P/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD guzzlephp guzzle
cpe:2.3:a:guzzlephp:guzzle:*:*:*:*:*:*:*:*
< 6.5.6 6.5.6
NVD guzzlephp guzzle
cpe:2.3:a:guzzlephp:guzzle:*:*:*:*:*:*:*:*
>= 7.0.0, < 7.4.3 7.4.3
NVD drupal drupal
cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*
>= 9.2.0, < 9.2.20 9.2.20
NVD drupal drupal
cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*
>= 9.3.0, < 9.3.14 9.3.14
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
= 11.0
OSV Packagist drupal/core >= 8.0.0, < 9.2.20; >= 9.3.0, < 9.3.14 9.2.20, 9.3.14
OSV Packagist guzzlehttp/guzzle < 6.5.6 6.5.6
OSV Packagist guzzlehttp/guzzle >= 7.0.0, < 7.4.3 7.4.3

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 25 May 2022)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 25 May 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.