CVE-2022-31042

HighCVSS 7.5/10Last modified Jun 17, 2026

Description

Guzzle is an open source PHP HTTP client. In affected versions the `Cookie` headers on requests are sensitive information. On making a request using the `https` scheme to a server which responds with a redirect to a URI with the `http` scheme, or on making a request to a server which responds with a redirect to a a URI to a different host, we should not forward the `Cookie` header on. Prior to this fix, only cookies that were managed by our cookie middleware would be safely removed, and any `Cookie` header manually added to the initial request would not be stripped. We now always strip it, and allow the cookie middleware to re-add any cookies that it deems should be there. Affected Guzzle 7 users should upgrade to Guzzle 7.4.4 as soon as possible. Affected users using any earlier series of Guzzle should upgrade to Guzzle 6.5.7 or 7.4.4. Users unable to upgrade may consider an alternative approach to use your own redirect middleware, rather than ours. If you do not require or expect redirects to be followed, one should simply disable redirects all together.

Metrics

CVSS 3.1 7.5/10CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Jun 10, 2022
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2022

CVE-2022-310437.5Guzzle is an open source PHP HTTP client. In affected versions `Authorization` headers on requests are sensitive information. On making a reCVE-2022-310447.5Rundeck is an open source automation service with a web console, command line tools and a WebAPI. The Key Storage converter plugin mechanismCVE-2022-310459.8Istio is an open platform to connect, manage, and secure microservices. In affected versions ill-formed headers sent to Envoy in certain conCVE-2022-310464.3TYPO3 is an open source web content management system. Prior to versions 7.6.57 ELTS, 8.7.47 ELTS, 9.5.34 ELTS, 10.4.29, and 11.5.11, the exCVE-2022-310476.5TYPO3 is an open source web content management system. Prior to versions 7.6.57 ELTS, 8.7.47 ELTS, 9.5.34 ELTS, 10.4.29, and 11.5.11, systemCVE-2022-310485.4TYPO3 is an open source web content management system. Prior to versions 8.7.47 ELTS, 9.5.34 ELTS, 10.4.29, and 11.5.11, the Form Designer bCVE-2022-310495.4TYPO3 is an open source web content management system. Prior to versions 9.5.34 ELTS, 10.4.29, and 11.5.11, user submitted content was used CVE-2022-31055.5An issue was discovered in the Linux kernel through 5.16-rc6. uapi_finalize in drivers/infiniband/core/uverbs_uapi.c lacks check of kmalloc_CVE-2022-310507.2TYPO3 is an open source web content management system. Prior to versions 9.5.34 ELTS, 10.4.29, and 11.5.11, Admin Tool sessions initiated viCVE-2022-310517.5semantic-release is an open source npm package for automated version management and package publishing. In affected versions secrets that woCVE-2022-310526.5Synapse is an open source home server implementation for the Matrix chat network. In versions prior to 1.61.1 URL previews of some web pagesCVE-2022-310539.8Biscuit is an authentication and authorization token for microservices architectures. The Biscuit specification version 1 contains a vulnera
CVE-2022-31042: High severity, CVSS 7.5 | Vulnix