CVEMETERBack to radar
OFFICIAL RECORD · PHP packages

CVE-2022-31042

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 7.5 · high

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_M
CVSS: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

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:28:52.703ZCISA KEV
cvssverified2026-11-19T12:56:31.882ZCVE Program
epssverified2026-11-19T16:04:33.773ZFIRST EPSS
patchesverified2026-11-19T12:52:00.283ZOSV
affectedverified2026-11-19T12:56:31.882ZCVE Program
lifecycleverified2026-11-19T12:56:31.882ZCVE 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 JSON
OSV · 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 JSON
OSV · 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 JSON

Correction 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 typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryPackagist / packageguzzlehttp/guzzleNot a distribution channel6.5.7Official record
ecosystem-boundaryPackagist / packageguzzlehttp/guzzleNot a distribution channel7.4.4Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history