CVE-2026-59882

guzzlehttp/psr7: Host Confusion via Weak URI Host Validation

State
Published
Severity
4.2 Medium
Published
Jul 8, 2026
Updated
Jul 8, 2026
Reserved
Jul 7, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.2 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:NGitHub_M

Weaknesses

Affected Products

ProductVersions
psr7guzzle
  • < 2.12.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.