CVE-2022-29248
HIGH 8.1CVSS 3.1Cross-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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | guzzlephp | guzzlecpe:2.3:a:guzzlephp:guzzle:*:*:*:*:*:*:*:* |
< 6.5.6 | 6.5.6 |
| NVD | guzzlephp | guzzlecpe:2.3:a:guzzlephp:guzzle:*:*:*:*:*:*:*:* |
>= 7.0.0, < 7.4.3 | 7.4.3 |
| NVD | drupal | drupalcpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* |
>= 9.2.0, < 9.2.20 | 9.2.20 |
| NVD | drupal | drupalcpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* |
>= 9.3.0, < 9.3.14 | 9.3.14 |
| NVD | debian | debian_linuxcpe: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
- https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab · Patch, Third Party Advisory, WEB
- https://github.com/guzzle/guzzle/pull/3018 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3 · Third Party Advisory, WEB
- https://www.debian.org/security/2022/dsa-5246 · Third Party Advisory, WEB
- https://www.drupal.org/sa-core-2022-010 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-29248 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-29248.yaml · WEB
- https://github.com/guzzle/guzzle · PACKAGE
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)