# GHSA-8jp9-mpv9-98rj: amphp/http-client Header leakage on cross-domain redirects

- Severity: Medium 4.0 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-15T17:48:10.000Z
- Modified: 2024-11-29T05:28:21.613Z

## 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.

(As written by GitHub Advisory Database.)

## Affected

- amphp/http-client (Packagist): from 4.0.0 before 4.4.0

## References

- <https://github.com/amphp/http-client/commit/fa7925363e6d5a0d0d337e2e6eb1affb93cf226e> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http-client/2020-06-16.yaml> (web)
- <https://github.com/amphp/http-client> (package)
- <https://github.com/amphp/http-client/releases/tag/v4.4.0> (web)

## Sources

- GitHub Advisory Database: [GHSA-8jp9-mpv9-98rj](https://github.com/advisories/GHSA-8jp9-mpv9-98rj), CC-BY-4.0, modified 2024-11-29

---

Page: https://cve.day/GHSA-8jp9-mpv9-98rj · Whole record: https://cve.day/GHSA-8jp9-mpv9-98rj.json · Rebuilt by cve.day 2026-11-25T22:56:31.619Z
