{"id":"GHSA-8jp9-mpv9-98rj","aliases":["GHSA-8jp9-mpv9-98rj"],"related":[],"kind":"vulnerability","state":"published","title":"amphp/http-client Header leakage on cross-domain redirects","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2024-05-15T17:48:10.000Z","modified":"2024-11-29T05:28:21.613Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N","score":4,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.4.0"}],"ecosystem":"Packagist","package":"amphp/http-client","purl":"pkg:composer/amphp/http-client","source":"ghsa"}],"references":[{"url":"https://github.com/amphp/http-client/commit/fa7925363e6d5a0d0d337e2e6eb1affb93cf226e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http-client/2020-06-16.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/amphp/http-client","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/amphp/http-client/releases/tag/v4.4.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8jp9-mpv9-98rj","url":"https://github.com/advisories/GHSA-8jp9-mpv9-98rj","licence":"CC-BY-4.0","modified":"2024-11-29T05:28:21.613Z"}],"updatedAt":"2026-11-25T22:56:31.619Z"}