Skip to content

Require patched Guzzle and PSR-7 versions#437

Open
GrahamCampbell wants to merge 1 commit into
php-opencloud:masterfrom
GrahamCampbell:gc/require-patched-guzzle-psr7
Open

Require patched Guzzle and PSR-7 versions#437
GrahamCampbell wants to merge 1 commit into
php-opencloud:masterfrom
GrahamCampbell:gc/require-patched-guzzle-psr7

Conversation

@GrahamCampbell
Copy link
Copy Markdown
Contributor

Security hardening. Versions that exist before GuzzleHttp\Psr7\Utils have CVEs published for them, and our PSR-7 v3 library will have breaking changes, so you will want to control when the upgrade to that is allowed.

@k0ka
Copy link
Copy Markdown
Member

k0ka commented May 24, 2026

Well, it would break the backward compatibility, so we should do this only when a new major version is released

@GrahamCampbell
Copy link
Copy Markdown
Contributor Author

I don't agree. Moreover, allowing PSR-7 v3 would cause real issues. If people really want to use super old insecure code, composer will still let them do it by resolving an older version of your library, or by pretending their older version of guzzle is a newer version using the as syntax.

@GrahamCampbell
Copy link
Copy Markdown
Contributor Author

It is very common for people to bump versions of dependencies in patch and minor releases across the PHP ecosystem, both among packages that claim they follow semver, but do a bad job, and those that actually follow it well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants