Medium

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

  • Disclosed: 15.05.2024
  • Updated: 11.10.2026 10:22

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package amphp/http-client >= 4.0.0, < 4.4.0 4.4.0

References

CVSS score 4/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N
Weakness (CWE)
-
Platform
Composer
Package
amphp/http-client
Disclosed
15.05.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-8jp9-mpv9-98rj - CC BY 4.0

Vulnerability history: amphp/http-client

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
04.2024 05.2024
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 1

Disclosures per year

  1. 2024: 3
  2. 2025: 0
  3. 2026: 0
  1. amphp/http-client Header leakage on cross-domain redirects this entry
    Medium · 4.0 ghsa-8jp9-mpv9-98rj >= 4.0.0, < 4.4.0 4.4.0
  2. High · 8.2 ghsa-w8gf-g2vq-j2f4 >= 4.0.0-rc10, < 4.1.0-rc1 4.1.0-rc1
  3. High · 8.2 CVE-2024-2653 >= 4.0.0-rc10, <= 4.0.0 no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.