CVE-2022-31042
Failure to strip the Cookie header on change in host or HTTP downgrade in Guzzle
Guzzle is an open source PHP HTTP client. In affected versions the `Cookie` headers on requests are sensitive information. On making a request using the `https` scheme to a server which responds with a redirect to a URI with the `http` scheme, or on making a request to a server which responds with a redirect to a a URI to a different host, we should not forward the `Cookie` header on. Prior to this fix, only cookies that were managed by our cookie middleware would be safely removed, and any `Cookie` header manually added to the initial request would not be stripped. We now always strip it, and allow the cookie middleware to re-add any cookies that it deems should be there. Affected Guzzle 7 users should upgrade to Guzzle 7.4.4 as soon as possible. Affected users using any earlier series of Guzzle should upgrade to Guzzle 6.5.7 or 7.4.4. Users unable to upgrade may consider an alternative approach to use your own redirect middleware, rather than ours. 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.992% · 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-19T17:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.5 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Assessment source · checked 2026-11-19T12:56:31.882Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:31.882Z | 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:31.882Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:31.882Z | CVE Program |
Affected versions and configuration
guzzle guzzle; default status: unknown: < 6.5.7 [affected; scheme: unspecified]; >=7.0.0, < 7.4.4 [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.7"
},
{
"status": "affected",
"version": ">=7.0.0, < 7.4.4"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/guzzle/guzzle/security/advisories/GHSA-f2wf-25xc-69c9",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/guzzle/guzzle/commit/e3ff079b22820c2029d4c2a87796b6a0b8716ad8",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.rfc-editor.org/rfc/rfc9110.html#name-redirection-3xx",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.drupal.org/sa-core-2022-011",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.debian.org/security/2022/dsa-5246",
"name": "DSA-5246",
"tags": [
"vendor-advisory",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T07:03:40.287Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-31042",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-04-23T15:54:32.202210Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-23T18:18:20.749Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-f2wf-25xc-69c9",
"aliases": [
"BIT-drupal-2022-31042",
"BIT-drupal-2022-31043",
"CVE-2022-31042",
"CVE-2022-31043",
"DRUPAL-CORE-2022-011",
"GHSA-w248-ffj2-4v5q"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.0.0"
},
{
"fixed": "6.5.7"
}
]
}
],
"package": {
"name": "guzzlehttp/guzzle",
"purl": "pkg:composer/guzzlehttp/guzzle",
"ecosystem": "Packagist"
},
"versions": [
"4.0.0",
"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"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-f2wf-25xc-69c9/GHSA-f2wf-25xc-69c9.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.4.4"
}
]
}
],
"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"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-f2wf-25xc-69c9/GHSA-f2wf-25xc-69c9.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/guzzle/guzzle/security/advisories/GHSA-f2wf-25xc-69c9",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31042",
"type": "ADVISORY"
},
{
"url": "https://github.com/guzzle/guzzle/commit/e3ff079b22820c2029d4c2a87796b6a0b8716ad8",
"type": "WEB"
},
{
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31042.yaml",
"type": "WEB"
},
{
"url": "https://github.com/guzzle/guzzle",
"type": "PACKAGE"
},
{
"url": "https://www.debian.org/security/2022/dsa-5246",
"type": "WEB"
},
{
"url": "https://www.drupal.org/sa-core-2022-011",
"type": "WEB"
},
{
"url": "https://www.rfc-editor.org/rfc/rfc9110.html#name-redirection-3xx",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-200",
"CWE-212"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2022-06-10T00:15:00Z",
"github_reviewed_at": "2022-06-09T23:47:25Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-w248-ffj2-4v5q",
"aliases": [
"BIT-drupal-2022-31042",
"BIT-drupal-2022-31043",
"CVE-2022-31042",
"CVE-2022-31043",
"DRUPAL-CORE-2022-011",
"GHSA-f2wf-25xc-69c9"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.0.0"
},
{
"fixed": "6.5.7"
}
]
}
],
"package": {
"name": "guzzlehttp/guzzle",
"purl": "pkg:composer/guzzlehttp/guzzle",
"ecosystem": "Packagist"
},
"versions": [
"4.0.0",
"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"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-w248-ffj2-4v5q/GHSA-w248-ffj2-4v5q.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.4.4"
}
]
}
],
"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"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-w248-ffj2-4v5q/GHSA-w248-ffj2-4v5q.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/guzzle/guzzle/security/advisories/GHSA-w248-ffj2-4v5q",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31043",
"type": "ADVISORY"
},
{
"url": "https://github.com/guzzle/guzzle/commit/e3ff079b22820c2029d4c2a87796b6a0b8716ad8",
"type": "WEB"
},
{
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31043.yaml",
"type": "WEB"
},
{
"url": "https://github.com/guzzle/guzzle",
"type": "PACKAGE"
},
{
"url": "https://www.debian.org/security/2022/dsa-5246",
"type": "WEB"
},
{
"url": "https://www.drupal.org/sa-core-2022-011",
"type": "WEB"
},
{
"url": "https://www.rfc-editor.org/rfc/rfc9110.html#name-redirection-3xx",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-200",
"CWE-212",
"CWE-863"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2022-06-10T00:15:00Z",
"github_reviewed_at": "2022-06-09T23:47:23Z"
}
}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.7 | Official record |
| ecosystem-boundary | Packagist / package | guzzlehttp/guzzle | Not a distribution channel | 7.4.4 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:52:00.283ZArchived source JSON
Source publication: 2022-06-09T23:47:25.000Z
Source modification: 2025-12-10T23:40:57.755ZDocument fingerprint
54a6bdda754e8cc2344c714a5b8253ab09ea5fbbfec8e3209f2b6e582fe2664f - OSVConsulted: 2026-11-19T12:52:00.283ZArchived source JSON
Source publication: 2022-06-09T23:47:23.000Z
Source modification: 2025-12-10T23:40:57.755ZDocument fingerprint
54a6bdda754e8cc2344c714a5b8253ab09ea5fbbfec8e3209f2b6e582fe2664f - CVE ProgramConsulted: 2026-11-19T12:56:31.882ZArchived source JSON
Source publication: 2022-06-09T00:00:00.000Z
Source modification: 2025-04-23T18:18:20.749ZDocument fingerprint
3b6bab627d069b2d6c65ccde72be921abc0aa9e51181b2ff05999c9583a3bdb7 - 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