Information Exposure Affecting guzzlehttp/guzzle package, versions <6.5.8>=7.0.0, <7.4.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (68th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-GUZZLEHTTPGUZZLE-2933558
  • published22 Jun 2022
  • disclosed21 Jun 2022
  • creditUnknown

Introduced: 21 Jun 2022

CVE-2022-31091  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade guzzlehttp/guzzle to version 6.5.8, 7.4.5 or higher.

Overview

Affected versions of this package are vulnerable to Information Exposure. When the Authorization and Cookie headers are included in a request that was redirected to a URI with a different port. By exploiting this vulnerability it is possible to expose these headers to the URI that the request is being redirected towards.

Workarounds:

An alternative approach would be to use your own redirect middleware if you are unable to upgrade. If you do not require or expect redirects to be followed, one should simply disable redirects altogether.

CVSS Scores

version 3.1