# CVE-2022-29248: Cross-domain cookie leakage in Guzzle

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.35%, higher than 72% of CVEs (2026-12-01)
- Published: 2022-05-25T00:00:00.000Z
- Modified: 2026-09-19T16:27:58.000Z
- Also known as: GHSA-cwmx-hcrq-mhc3, BIT-DRUPAL-2022-29248, DRUPAL-CORE-2022-010
- Weaknesses: CWE-200, CWE-565
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- guzzle guzzle: < 6.5.6; >= 7.0.0, < 7.4.3
- guzzlehttp/guzzle (Packagist): before 6.5.6; from 7.0.0 before 7.4.3
- drupal/core (Packagist): from 8.0.0 before 9.2.20; from 9.3.0 before 9.3.14
- guzzlephp guzzle: before 6.5.6; from 7.0.0 before 7.4.3
- drupal drupal: from 9.2.0 before 9.2.20; from 9.3.0 before 9.3.14
- debian debian_linux: 11.0
- drupal (Bitnami): from 9.2.0 before 9.2.20; from 9.3.0 before 9.3.14

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3> (advisory, third-party-advisory, web)
- <https://github.com/guzzle/guzzle/pull/3018> (advisory, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab> (advisory, patch, third-party-advisory, web)
- <https://www.drupal.org/sa-core-2022-010> (advisory, patch, third-party-advisory, web)
- <https://www.debian.org/security/2022/dsa-5246> (advisory, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-29248> (advisory, web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-29248.yaml> (web)
- <https://github.com/guzzle/guzzle> (package)

## Sources

- CVE List: [CVE-2022-29248](https://www.cve.org/CVERecord?id=CVE-2022-29248), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-cwmx-hcrq-mhc3](https://github.com/advisories/GHSA-cwmx-hcrq-mhc3), CC-BY-4.0, modified 2025-12-10
- Drupal Security Team: [DRUPAL-CORE-2022-010](https://osv.dev/vulnerability/DRUPAL-CORE-2022-010), MIT, modified 2026-09-19
- NVD: [CVE-2022-29248](https://nvd.nist.gov/vuln/detail/CVE-2022-29248), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-DRUPAL-2022-29248](https://osv.dev/vulnerability/BIT-DRUPAL-2022-29248), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-29248 · Whole record: https://cve.day/CVE-2022-29248.json · Rebuilt by cve.day 2026-11-25T22:58:11.935Z
