CVE-2022-31042: high-severity vulnerability in guzzle
Failure to strip the Cookie header on change in host or HTTP downgrade in Guzzle
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
Guzzle fails to remove sensitive Cookie headers when a website redirects to a different domain or from HTTPS to HTTP, potentially exposing authentication tokens and session data to untrusted servers.
When Guzzle follows HTTP redirects (3xx responses) to a different host or downgrades from HTTPS to HTTP, manually-set Cookie headers are not stripped before the redirect request, violating the same-origin policy. Only cookies managed by Guzzle's middleware were previously removed; the vulnerability affects manually-added headers. Attackers can trick applications into sending credentials to malicious domains via redirect chains.
In the same product, most dangerous first.