CVE-2026-59882 Details
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.
A vulnerability exists in guzzlehttp/psr7 versions prior to 2.12.3, related to improper validation of URI host components. The issue allows hosts with authority delimiters, embedded ports, or malformed IPv6 brackets to be accepted as valid. This can lead to discrepancies between the host returned by 'getHost()' and the actual URI authority, potentially causing routing errors or security bypasses.
Users can upgrade to guzzlehttp/psr7 version 2.12.3 or later, where the vulnerability is fixed. In this version, the library properly validates URI hosts by rejecting components with authority delimiters, embedded ports, or incorrect IPv6 bracket usage. For applications that cannot upgrade immediately, it is recommended to validate and normalize host values before creating or modifying 'Uri' objects with untrusted input.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/guzzle/psr7/commit/ddd64f17d4cc1f7e5ffe6fd2c989ec7221712580 | [email protected] | Patch |
| https://github.com/guzzle/psr7/pull/811 | [email protected] | Issue TrackingPatch |
| https://github.com/guzzle/psr7/releases/tag/2.12.3 | [email protected] | ProductRelease Notes |
| https://github.com/guzzle/psr7/security/advisories/GHSA-c2w2-prh8-qm98 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-436 | Interpretation Conflict | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| guzzlephp psr-7 | < 2.12.3 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 17, 2026 | Initial Analysis | [email protected] |
| Jul 8, 2026 | CVE Modified | CISA-ADP |
| Jul 8, 2026 | New CVE Received | [email protected] |