CVE-2022-31091: high-severity vulnerability in guzzle
Change in port should be considered a change in origin 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 PHP HTTP client fails to remove sensitive Authorization and Cookie headers when automatically following redirects to URLs with different ports. This allows credentials to leak to unintended destinations.
CWE-200 information exposure vulnerability in Guzzle's redirect handling: when following HTTP redirects, the library only checked for changes in host and scheme, but not port number, resulting in sensitive Authorization and Cookie headers being forwarded across origin boundaries. Attack requires server-side redirect to different port; requires application to follow redirects automatically (default behavior).
In the same product, most dangerous first.