Search for vulnerabilities
Vulnerability details: VCID-hxv2-v9z1-3qh8
Vulnerability ID VCID-hxv2-v9z1-3qh8
Aliases CVE-2022-31091
GHSA-q559-8m2m-g699
GMS-2022-2529
Summary Change in port should be considered a change in origin ### Impact `Authorization` and `Cookie` headers on requests are sensitive information. On making a request which responds with a redirect to a URI with a different port, if we choose to follow it, we should remove the `Authorization` and `Cookie` headers from the request, before containing. Previously, we would only consider a change in host or scheme downgrade. Now, we consider any change in host, port or scheme to be a change in origin. ### Patches Affected Guzzle 7 users should upgrade to Guzzle 7.4.5 as soon as possible. Affected users using any earlier series of Guzzle should upgrade to Guzzle 6.5.8 or 7.4.5. ### Workarounds An alternative approach would be to use your own redirect middleware, rather than ours, if you are unable to upgrade. If you do not require or expect redirects to be followed, one should simply disable redirects all together. ### References * [RFC9110 Section 15.4](https://www.rfc-editor.org/rfc/rfc9110.html#name-redirection-3xx) * [CVE-2022-27776](https://curl.se/docs/CVE-2022-27776.html) ### For more information If you have any questions or comments about this advisory, please get in touch with us in `#guzzle` on the [PHP HTTP Slack](https://php-http.slack.com/). Do not report additional security advisories in that public channel, however please follow our [vulnerability reporting process](https://github.com/guzzle/guzzle/security/policy).
Status Published
Exploitability 0.5
Weighted Severity 8.0
Risk 4.0
Affected and Fixed Packages Package Details
Weaknesses (3)
System Score Found at
epss 0.00249 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00249 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00249 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00249 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00335 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00371 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00371 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00371 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00371 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00371 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00371 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00371 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00371 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00371 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
epss 0.00371 https://api.first.org/data/v1/epss?cve=CVE-2022-31091
cvssv3.1_qr HIGH https://github.com/advisories/GHSA-q559-8m2m-g699
cvssv3.1 7.7 https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31091.yaml
generic_textual HIGH https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31091.yaml
cvssv3.1 7.7 https://github.com/guzzle/guzzle
generic_textual HIGH https://github.com/guzzle/guzzle
cvssv3.1 7.7 https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
generic_textual HIGH https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
ssvc Track https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
cvssv3.1 7.7 https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699
cvssv3.1_qr HIGH https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699
generic_textual HIGH https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699
ssvc Track https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699
cvssv2 4.0 https://nvd.nist.gov/vuln/detail/CVE-2022-31091
cvssv3.1 7.7 https://nvd.nist.gov/vuln/detail/CVE-2022-31091
generic_textual HIGH https://nvd.nist.gov/vuln/detail/CVE-2022-31091
archlinux Unknown https://security.archlinux.org/AVG-2823
cvssv3.1 7.7 https://security.gentoo.org/glsa/202305-24
generic_textual HIGH https://security.gentoo.org/glsa/202305-24
ssvc Track https://security.gentoo.org/glsa/202305-24
cvssv3.1 7.7 https://www.debian.org/security/2022/dsa-5246
generic_textual HIGH https://www.debian.org/security/2022/dsa-5246
ssvc Track https://www.debian.org/security/2022/dsa-5246
Reference id Reference type URL
https://api.first.org/data/v1/epss?cve=CVE-2022-31091
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44854
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44855
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44856
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28201
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28202
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28203
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29248
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31042
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31043
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31090
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31091
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-34911
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-34912
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41765
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41767
https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31091.yaml
https://github.com/guzzle/guzzle
https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699
https://nvd.nist.gov/vuln/detail/CVE-2022-31091
https://security.gentoo.org/glsa/202305-24
https://www.debian.org/security/2022/dsa-5246
1014492 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014492
AVG-2823 https://security.archlinux.org/AVG-2823
cpe:2.3:a:guzzlephp:guzzle:*:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:guzzlephp:guzzle:*:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
GHSA-q559-8m2m-g699 https://github.com/advisories/GHSA-q559-8m2m-g699
No exploits are available.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31091.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://github.com/guzzle/guzzle
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:04:47Z/ Found at https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:04:47Z/ Found at https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699
Vector: AV:N/AC:L/Au:S/C:P/I:N/A:N Found at https://nvd.nist.gov/vuln/detail/CVE-2022-31091
Exploitability (E) Access Vector (AV) Access Complexity (AC) Authentication (Au) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

high

functional

unproven

proof_of_concept

not_defined

local

adjacent_network

network

high

medium

low

multiple

single

none

none

partial

complete

none

partial

complete

none

partial

complete

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://nvd.nist.gov/vuln/detail/CVE-2022-31091
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://security.gentoo.org/glsa/202305-24
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:04:47Z/ Found at https://security.gentoo.org/glsa/202305-24
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://www.debian.org/security/2022/dsa-5246
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:04:47Z/ Found at https://www.debian.org/security/2022/dsa-5246
Exploit Prediction Scoring System (EPSS)
Percentile 0.48304
EPSS Score 0.00249
Published At Aug. 1, 2025, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2025-07-31T09:05:26.467824+00:00 GithubOSV Importer Import https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-q559-8m2m-g699/GHSA-q559-8m2m-g699.json 37.0.0