CVEfocus › CVE database › CVE-2026-59882

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

CVSS 4.2 MediumEPSS 0.3% (higher than 17% of CVEs)Published 2026-07-08Updated 2026-07-08Assigner: GitHub_M

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.

CWE-436

What to do

Fixed builds are available from Debian, Packagist: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
5Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04php-guzzlehttp-psr7Under investigationUBUNTU-CVE-2026-59882
Ubuntu 25.10php-guzzlehttp-psr7Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-59882
Ubuntu 24.04php-guzzlehttp-psr7Under investigationUBUNTU-CVE-2026-59882
Ubuntu 22.04php-guzzlehttp-psr7Fix pendingUBUNTU-CVE-2026-59882
Ubuntu 20.04php-guzzlehttp-psr7Fix pendingUBUNTU-CVE-2026-59882
Ubuntu 16.04php-guzzlehttp-psr7Fix pendingUBUNTU-CVE-2026-59882
Debian 14php-guzzlehttp-psr7Fixed2.12.3-1DEBIAN-CVE-2026-59882
Debian 13php-guzzlehttp-psr7Fix pendingDEBIAN-CVE-2026-59882
Debian 12php-guzzlehttp-psr7Fix pendingDEBIAN-CVE-2026-59882
Packagist libraryguzzlehttp/psr7Fixed2.12.3GHSA-c2w2-prh8-qm98

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.