CVE-2026-59882
MEDIUM 6.5CVSS 3.1guzzlehttp/psr7: Host Confusion via Weak URI Host Validation
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.
- Published
- 8 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-20CWE-436
- Also known as
- GHSA-c2w2-prh8-qm98
- Sources
- NVDJSONOSV GHSA-c2w2-prh8-qm98JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | guzzlephp | psr-7cpe:2.3:a:guzzlephp:psr-7:*:*:*:*:*:*:*:* |
< 2.12.3 | 2.12.3 |
| OSV | Packagist | guzzlehttp/psr7 | < 2.12.3 | 2.12.3 |
References
- https://github.com/guzzle/psr7/commit/ddd64f17d4cc1f7e5ffe6fd2c989ec7221712580 · Patch, WEB
- https://github.com/guzzle/psr7/pull/811 · Issue Tracking, Patch, WEB
- https://github.com/guzzle/psr7/releases/tag/2.12.3 · Product, Release Notes, WEB
- https://github.com/guzzle/psr7/security/advisories/GHSA-c2w2-prh8-qm98 · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-59882 · ADVISORY
- https://github.com/guzzle/psr7 · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 21 Jul 2026)