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

Not scored Published

An attacker can leak sensitive request headers to a different host during cross-domain redirects in the amphp/http-client library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-8jp9-mpv9-98rj?

GHSA-8jp9-mpv9-98rj is a vulnerability in amphp/http-client, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Which versions are affected by GHSA-8jp9-mpv9-98rj?

2 open source packages ship an affected version, including amphp/http-client.

PackageAffectedFixed in
amphp/http-client PackagistFrom 4.0.04.4.0
amphp/http-client PackagistFrom 4.0.04.4.0

How do I fix GHSA-8jp9-mpv9-98rj?

Upgrade amphp/http-client to 4.4.0 or later.

Is GHSA-8jp9-mpv9-98rj being exploited?

There is no known exploitation of GHSA-8jp9-mpv9-98rj in the wild and no public exploit code.

Sources

Is GHSA-8jp9-mpv9-98rj in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free