Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. amphp/http-client
  4. ›
  5. GHSA-8jp9-mpv9-98rj

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

May 15, 2024

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.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http-client/2020-06-16.yaml
  • github.com/advisories/GHSA-8jp9-mpv9-98rj
  • github.com/amphp/http-client
  • github.com/amphp/http-client/commit/fa7925363e6d5a0d0d337e2e6eb1affb93cf226e
  • github.com/amphp/http-client/releases/tag/v4.4.0

Code Behaviors & Features

Detect and mitigate GHSA-8jp9-mpv9-98rj with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0 before 4.4.0

Fixed versions

  • 4.4.0

Solution

Upgrade to version 4.4.0 or above.

Impact 4 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N

Learn more about CVSS

Source file

packagist/amphp/http-client/GHSA-8jp9-mpv9-98rj.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:06 +0000.