Skip to content
OpenAdvisories
Medium · 4.2 CVE-2026-59882 EUVD-2026-42319GHSA-c2w2-prh8-qm98

guzzlehttp/psr7: Host Confusion via Weak URI Host Validation

Published Jul 8, 2026 · Updated Jul 8, 2026 · Assigned by GitHub_M

Description

guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. Prior to 2.12.3, Uri::assertValidHost() does not reject URI host components containing authority delimiters, embedded ports, or malformed IPv6 brackets, allowing Uri::getHost() to disagree with the URI authority used for security or routing decisions. This issue is fixed in version 2.12.3.

Affected products

VendorProductAffectedFixed
guzzle psr7 < 2.12.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php-guzzlehttp-psr7 2.12.3-1 —
Debian 13 php-guzzlehttp-psr7 No fix yet —
Debian 12 php-guzzlehttp-psr7 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS php-guzzlehttp-psr7 No fix yet —
Ubuntu 25.10 php-guzzlehttp-psr7 No fix yet —
Ubuntu 24.04 LTS php-guzzlehttp-psr7 No fix yet —
Ubuntu 20.04 LTS php-guzzlehttp-psr7 No fix yet —
Ubuntu 16.04 LTS php-guzzlehttp-psr7 No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS php-guzzlehttp-psr7 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist guzzlehttp/psr7 < 2.12.3 2.12.3 GHSA-c2w2-prh8-qm98

References