CVE-2022-31091
Change in port should be considered a change in origin in Guzzle
Guzzle, an extensible PHP HTTP client. `Authorization` and `Cookie` headers on requests are sensitive information. In affected versions 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. 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. Note that a partial fix was implemented in Guzzle 7.4.2, where a change in host would trigger removal of the curl-added Authorization header, however this earlier fix did not cover change in scheme or change in port. 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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.590% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.7 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Assessment source · checked 2026-11-19T12:56:32.141Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:32.141Z | CVE Program |
| epss | verified | 2026-11-19T16:04:33.773Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:00.283Z | OSV |
| affected | verified | 2026-11-19T12:56:32.141Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:32.141Z | CVE Program |
Affected versions and configuration
guzzle guzzle; default status: unknown: < 6.5.8 [affected; scheme: unspecified]; >=7.0.0, < 7.4.5 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "guzzle",
"product": "guzzle",
"versions": [
{
"status": "affected",
"version": "< 6.5.8"
},
{
"status": "affected",
"version": ">=7.0.0, < 7.4.5"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.debian.org/security/2022/dsa-5246",
"name": "DSA-5246",
"tags": [
"vendor-advisory",
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202305-24",
"name": "GLSA-202305-24",
"tags": [
"vendor-advisory",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T07:11:39.362Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-31091",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-04-23T14:04:47.252733Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-23T18:08:21.161Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-q559-8m2m-g699",
"aliases": [
"CVE-2022-31091"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "6.5.8"
}
]
}
],
"package": {
"name": "guzzlehttp/guzzle",
"purl": "pkg:composer/guzzlehttp/guzzle",
"ecosystem": "Packagist"
},
"versions": [
"4.0.0",
"4.0.0-rc.1",
"4.0.0-rc.2",
"4.0.1",
"4.0.2",
"4.1.0",
"4.1.1",
"4.1.2",
"4.1.3",
"4.1.4",
"4.1.5",
"4.1.6",
"4.1.7",
"4.1.8",
"4.2.0",
"4.2.1",
"4.2.2",
"4.2.3",
"4.2.4",
"5.0.0",
"5.0.1",
"5.0.2",
"5.0.3",
"5.1.0",
"5.2.0",
"5.3.0",
"5.3.1",
"5.3.2",
"5.3.3",
"5.3.4",
"6.0.0",
"6.0.1",
"6.0.2",
"6.1.0",
"6.1.1",
"6.2.0",
"6.2.1",
"6.2.2",
"6.2.3",
"6.3.0",
"6.3.1",
"6.3.2",
"6.3.3",
"6.4.0",
"6.4.1",
"6.5.0",
"6.5.1",
"6.5.2",
"6.5.3",
"6.5.4",
"6.5.5",
"6.5.6",
"6.5.7",
"v1.0.3",
"v1.0.4",
"v2.0.0",
"v2.0.1",
"v2.0.2",
"v2.0.3",
"v2.0.4",
"v2.0.5",
"v2.1.0",
"v2.1.1",
"v2.1.2",
"v2.1.3",
"v2.1.4",
"v2.2.0",
"v2.2.1",
"v2.2.2",
"v2.2.3",
"v2.2.4",
"v2.3.2",
"v2.4.0",
"v2.4.1",
"v2.5.0",
"v2.6.0",
"v2.6.1",
"v2.6.2",
"v2.6.3",
"v2.6.4",
"v2.6.5",
"v2.6.6",
"v2.7.0",
"v2.7.1",
"v2.7.2",
"v2.8.0",
"v2.8.1",
"v2.8.2",
"v2.8.3",
"v2.8.4",
"v2.8.5",
"v2.8.6",
"v2.8.7",
"v2.8.8",
"v3.0.0",
"v3.0.1",
"v3.0.2",
"v3.0.3",
"v3.0.4",
"v3.0.5",
"v3.0.6",
"v3.0.7",
"v3.1.0",
"v3.1.1",
"v3.1.2",
"v3.2.0",
"v3.3.0",
"v3.3.1",
"v3.4.0",
"v3.4.1",
"v3.4.2",
"v3.4.3",
"v3.5.0",
"v3.6.0",
"v3.7.0",
"v3.7.1",
"v3.7.2",
"v3.7.3",
"v3.7.4",
"v3.8.0",
"v3.8.1"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-q559-8m2m-g699/GHSA-q559-8m2m-g699.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.4.5"
}
]
}
],
"package": {
"name": "guzzlehttp/guzzle",
"purl": "pkg:composer/guzzlehttp/guzzle",
"ecosystem": "Packagist"
},
"versions": [
"7.0.0",
"7.0.1",
"7.1.0",
"7.1.1",
"7.2.0",
"7.3.0",
"7.4.0",
"7.4.1",
"7.4.2",
"7.4.3",
"7.4.4"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-q559-8m2m-g699/GHSA-q559-8m2m-g699.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31091",
"type": "ADVISORY"
},
{
"url": "https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
"type": "WEB"
},
{
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31091.yaml",
"type": "WEB"
},
{
"url": "https://github.com/guzzle/guzzle",
"type": "PACKAGE"
},
{
"url": "https://security.gentoo.org/glsa/202305-24",
"type": "WEB"
},
{
"url": "https://www.debian.org/security/2022/dsa-5246",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-200"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2022-06-27T22:15:00Z",
"github_reviewed_at": "2022-06-21T20:07:16Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Packagist / package | guzzlehttp/guzzle | Not a distribution channel | 6.5.8 | Official record |
| ecosystem-boundary | Packagist / package | guzzlehttp/guzzle | Not a distribution channel | 7.4.5 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:00.283ZArchived source JSON
Source publication: 2022-06-21T20:07:16.000Z
Source modification: 2023-11-08T04:09:25.594ZDocument fingerprint
54a6bdda754e8cc2344c714a5b8253ab09ea5fbbfec8e3209f2b6e582fe2664f - CVE ProgramConsulted: 2026-11-19T12:56:32.141ZArchived source JSON
Source publication: 2022-06-27T00:00:00.000Z
Source modification: 2025-04-23T18:08:21.161ZDocument fingerprint
ab271aa5053c010966eea71078e5cffa7a31c936a1f32c7c6e32a39b978c6609 - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:33.773ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
61a73aadbfc560e47e1294f3a67a7c0f50173e56af53ae885ac6a32a73b8f00f
Official status history
- UNKNOWN → PUBLISHED · · evidence