{"id":"GHSA-8jp9-mpv9-98rj","aliases":[],"status":"published","title":"amphp/http-client Header leakage on cross-domain redirects","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.","severity":{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2024-05-15T17:48:10Z","modified":"2024-11-29T05:28:21Z","fixes":[{"ecosystem":"Packagist","package":"amphp/http-client","fixed_in":["4.4.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"amphp/http-client","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.4.0"}]}]},{"source":"osv","ecosystem":"Packagist","package":"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"]}],"references":[{"url":"https://github.com/amphp/http-client/commit/fa7925363e6d5a0d0d337e2e6eb1affb93cf226e","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http-client/2020-06-16.yaml","tags":["web"]},{"url":"https://github.com/amphp/http-client/releases/tag/v4.4.0","tags":["web"]},{"url":"https://github.com/advisories/GHSA-8jp9-mpv9-98rj"},{"url":"https://github.com/amphp/http-client","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-8jp9-mpv9-98rj","title":"amphp/http-client Header leakage on cross-domain redirects","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.\n\n","status":"published","published":"2024-05-15T17:48:10Z","modified":"2024-05-15T17:48:10Z","cvss":[{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T14:37:49.48194Z"}],"osv":[{"id":"GHSA-8jp9-mpv9-98rj","title":"amphp/http-client Header leakage on cross-domain redirects","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.\n\n","status":"published","published":"2024-05-15T17:48:10Z","modified":"2024-11-29T05:28:21.613229Z","cvss":[{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:46:42.437513Z"}]}}
