Vulnerability advisory
CVE-2026-59882
guzzlehttp/psr7: Host Confusion via Weak URI Host Validation
Also known as GHSA-c2w2-prh8-qm98
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/guzzle/psr7 ↗ | |
| All commits before 7ec62dc3f44aa218487dbed81a9bf9bc647be55d | 7ec62dc3f44aa218487dbed81a9bf9bc647be55d |
| Not specified | ddd64f17d4cc1f7e5ffe6fd2c989ec7221712580 |
Also listed as affected (45)
| |
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.
References
- Webgithub.com/guzzle/psr7/releases/tag/2.12.3 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59882.json ↗
- Advisorygithub.com/guzzle/psr7/security/advisories/GHSA-c2w2-prh8-qm98 ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-59882 ↗
- Fixgithub.com/guzzle/psr7/commit/ddd64f17d4cc1f7e5ffe6fd2c989ec7221712580 ↗
- Fixgithub.com/guzzle/psr7/pull/811 ↗