Skip to content
OpenAdvisories
Medium · 4.0 GHSA-8jp9-mpv9-98rj

amphp/http-client Header leakage on cross-domain redirects

Published May 15, 2024 · Updated Nov 29, 2024 · Assigned by GHSA

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.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist amphp/http-client >= 4.0.0, < 4.4.0 4.4.0 GHSA-8jp9-mpv9-98rj

References