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

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-07-08T15:50:03.077Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-c2w2-prh8-qm98
- Weaknesses: CWE-20, CWE-436
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- guzzle psr7: < 2.12.3
- guzzlehttp/psr7 (Packagist): before 2.12.3
- guzzlephp psr-7: before 2.12.3

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/guzzle/psr7/security/advisories/GHSA-c2w2-prh8-qm98> (mitigation, vendor-advisory, web)
- <https://github.com/guzzle/psr7/pull/811> (issue-tracking, patch, web)
- <https://github.com/guzzle/psr7/commit/ddd64f17d4cc1f7e5ffe6fd2c989ec7221712580> (patch, web)
- <https://github.com/guzzle/psr7/releases/tag/2.12.3> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59882> (advisory)
- <https://github.com/guzzle/psr7> (package)

## Sources

- CVE List: [CVE-2026-59882](https://www.cve.org/CVERecord?id=CVE-2026-59882), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-c2w2-prh8-qm98](https://github.com/advisories/GHSA-c2w2-prh8-qm98), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-59882](https://nvd.nist.gov/vuln/detail/CVE-2026-59882), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-59882 · Whole record: https://cve.day/CVE-2026-59882.json · Rebuilt by cve.day 2026-11-25T22:59:27.399Z
