CVE-2022-31042: Failure to strip the Cookie header on change in host or HTTP downgrade

high Affects guzzlehttp/guzzle, drupal/core. Feed 2026.10.29.4, updated 2026-10-29; published ; advisory modified .

Failure to strip the Cookie header on change in host or HTTP downgrade

Package
guzzlehttp/guzzle Composer
Affected versions
>=4.0.0 and <6.5.7 or >=7.0.0 and <7.4.4 or >=7 and <7.4.4 or >=4 and <6.5.7
Fixed in
6.5.7, 7.4.4
Severity
high  CVSS 7.5
Exploitation
not on CISA KEV · EPSS 2% (80.6th percentile)
Published
2022-06-09
Source
osv.dev

References

*Updated 22:00 UTC 2022-06-10: Added steps to update without `drupal/core-recommended`.* Drupal uses the third-party Gu

Package
drupal/core Composer
Affected versions
>= 8.0.0 <9.2.21 or >= 9.3.0 <9.3.16
Fixed in
9.2.21, 9.3.16
Severity
unknown
Exploitation
not on CISA KEV · EPSS 2% (80.6th percentile)
Published
2022-06-10
Source
osv.dev

References

CWE-200CWE-212CWE-863
NVD recordguzzlehttp/guzzle advisoriesdrupal/core advisories

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 20,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked

Related advisories