{"cve":"CVE-2022-29248","nvd":{"published":"2022-05-25T18:15:08.503","modified":"2026-06-17T04:39:54.950","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1},"cwes":["CWE-565","CWE-200"],"references":["https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab","https://github.com/guzzle/guzzle/pull/3018","https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3","https://www.debian.org/security/2022/dsa-5246","https://www.drupal.org/sa-core-2022-010"],"products":["debian:debian_linux","drupal:drupal","guzzlephp:guzzle"],"source":"nvd","synced_at":"2026-10-19T21:31:59.322382750+00:00"},"epss":{"cve":"CVE-2022-29248","score":0.01362,"percentile":0.71769,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-cwmx-hcrq-mhc3","url":"https://osv.dev/vulnerability/GHSA-cwmx-hcrq-mhc3","summary":"Cross-domain cookie leakage in Guzzle","modified":"2025-12-10T23:41:02.272273Z","packages":[{"ecosystem":"Packagist","name":"guzzlehttp/guzzle","purl":"pkg:composer/guzzlehttp/guzzle","ranges":["<6.5.6"],"fixed":["6.5.6"]},{"ecosystem":"Packagist","name":"guzzlehttp/guzzle","purl":"pkg:composer/guzzlehttp/guzzle","ranges":[">=7.0.0 <7.4.3"],"fixed":["7.4.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}