{"id":"GHSA-8jp9-mpv9-98rj","summary":"amphp/http-client Header leakage on cross-domain redirects","details":"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.\n\n","modified":"2024-11-29T05:28:21.613229Z","published":"2024-05-15T17:48:10Z","database_specific":{"github_reviewed_at":"2024-05-15T17:48:10Z","nvd_published_at":null,"cwe_ids":[],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/amphp/http-client/commit/fa7925363e6d5a0d0d337e2e6eb1affb93cf226e"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http-client/2020-06-16.yaml"},{"type":"PACKAGE","url":"https://github.com/amphp/http-client"},{"type":"WEB","url":"https://github.com/amphp/http-client/releases/tag/v4.4.0"}],"affected":[{"package":{"name":"amphp/http-client","ecosystem":"Packagist","purl":"pkg:composer/amphp/http-client"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.4.0"}]}],"versions":["v4.0.0","v4.1.0","v4.1.0-rc1","v4.2.0","v4.2.1","v4.2.2","v4.3.0","v4.3.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/05/GHSA-8jp9-mpv9-98rj/GHSA-8jp9-mpv9-98rj.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N"}]}