medium4.2
CVE-2026-59882
guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP.
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | guzzlehttp/psr7 | < 2.12.3 | 2.12.3 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Guzzlephp | Psr-7 | before 2.12.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-c2w2-prh8-qm98
- https://github.com/guzzle/psr7/security/advisories/GHSA-c2w2-prh8-qm98
- https://nvd.nist.gov/vuln/detail/CVE-2026-59882
- https://github.com/guzzle/psr7/pull/811
- https://github.com/guzzle/psr7/commit/ddd64f17d4cc1f7e5ffe6fd2c989ec7221712580
- https://github.com/guzzle/psr7/releases/tag/2.12.3