Problem/Motivation
Guzzle
https://github.com/advisories/GHSA-h95v-h523-3mw8
https://github.com/advisories/GHSA-wm3w-8rrp-j577
https://github.com/advisories/GHSA-f283-ghqc-fg79
Composer
https://github.com/advisories/GHSA-gjfg-22fp-rrxx
https://github.com/advisories/GHSA-g6xq-892h-64w3
https://github.com/advisories/GHSA-499r-g7pc-vmp9
composer/composer is not in core-recommended, so updating is not in scope here.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Workaround
You can temporarily fetch aliases of the affected guzzlehttp libraries with this command:
composer require "guzzlehttp/guzzle:7.15.1 as 7.12.1" "guzzlehttp/promises:2.5.1 as 2.5.0" "guzzlehttp/psr7:2.13.0 as 2.12.1"
When a new Drupal core is released, revert this temporary fix by deleting these lines in composer.json, and then update Drupal core:
"guzzlehttp/guzzle": "7.15.1 as 7.12.1",
"guzzlehttp/promises": "2.5.1 as 2.5.0",
"guzzlehttp/psr7": "2.13.0 as 2.12.1",
For details, see https://getcomposer.org/doc/articles/aliases.md.
Issue fork drupal-3612247
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
catchComment #5
godotislateComment #9
godotislateComment #10
godotislate11.3.x: https://git.drupalcode.org/project/drupal/-/merge_requests/16381
10.6.x: https://git.drupalcode.org/project/drupal/-/merge_requests/16382
Comment #11
godotislateComment #12
hummeldon commentedJust popping in to say thanks for getting things rolling on this. Looking forward to when my team can move over to 11.4.
Comment #13
hummeldon commentedComment #14
godotislateComment #15
catchLooks good.
Comment #16
mstrelan commentedI tried to follow Managing composer updates for Drupal core to verify that I got the same output, but it just kept trying to downgrade to an older guzzle version. Perhaps there are different steps for core-recommended.
Instead I reviewed the commit from #3603733: Update guzzlehttp/psr7 to 2.12.1 and guzzlehttp/guzzle to 7.12.1 and can see this follows the same pattern. Tests are green, RTBC+1.
Comment #17
sense-designRTBC+1 for me too, need this fix for Drupal 11.3 very soon if possible. Currently our automatic scanner will not let us through.
Comment #18
sense-designCurrently using this workaround in Drupal 11.3 to pass my tests
or if using DDEV
Comment #22
catchSince @mstrelan +1d this going ahead with a commit here. Committed/pushed the respective MRs to 10.6.x and 11.3.x, thanks!
Opened #3612448: Widen constraints in core-recommended for 11.3.x and 10.6.x so we don't have to keep doing this constantly.
Comment #25
ressaThanks everyone for a fast reaction to this, I am adding the Composer / Guzzle workaround tip in the Issue Summary. Widening the constraints in 10.6 and 11.3 would be a welcome update.