Affected versions
Composeramphp/http-client
- Affected versions
- >= 4.0.0, < 4.4.0
- Fixed version
- 4.4.0
Description
amphp/http-client has a security weakness that might leak sensitive request headers from the initial request to the redirected host on cross-domain redirects, which were not removed correctly. Message::setHeaders does not replace the entire set of headers, but only operates on the headers matching the given array keys.
Links
- https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http-client/2020-06-16.yaml
- https://github.com/advisories/GHSA-8jp9-mpv9-98rj
- https://github.com/amphp/http-client
- https://github.com/amphp/http-client/commit/fa7925363e6d5a0d0d337e2e6eb1affb93cf226e
- https://github.com/amphp/http-client/releases/tag/v4.4.0

