medium CVSS 4.2 EPSS 0.19%

CVE-2026-59882·PHP vulnerability

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.

Severity
medium
Software
PHP
Fixed in
2.12.3
Published

How likely is exploitation

FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.19% — higher than 8% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.

Affected versions

Until: 2.12.3

Fixed in: 2.12.3

How to fix this CVE

Update the guzzlehttp/psr7 library to version 2.12.3 or later to fix URI host validation issues that could allow mismatches between parsed host components and actual authority delimiters. Applications using older versions should upgrade immediately via composer or their package manager to prevent potential security routing bypasses.

sudo dnf update php php-pecl-*

Defensia detects this vulnerability

How to check if you are affected

  1. Run 'php -v' to verify the installed PHP version and 'composer show guzzlehttp/psr7' to check the exact guzzlehttp/psr7 version on the system
  2. Inspect composer.lock or vendor/guzzlehttp/psr7/composer.json to confirm if guzzlehttp/psr7 is below version 2.12.3
  3. Search application logs for URI parsing errors or Host header mismatches by grepping for 'Uri::' or 'assertValidHost' in error logs
  4. Verify remediation by running 'composer require guzzlehttp/psr7:^2.12.3' and confirming the lock file reflects version 2.12.3 or higher

FAQ

What is CVE-2026-59882?

A URI validation flaw in guzzlehttp/psr7 where the Uri::assertValidHost() method fails to properly reject malformed host components including embedded ports and invalid IPv6 bracket notation, creating a disconnect between what the URI parser extracts and what security checks see.

Is CVE-2026-59882 being actively exploited?

No, there is no evidence of active exploitation or public exploits available for this vulnerability at this time.

What versions of PHP are affected by CVE-2026-59882?

Any PHP application using guzzlehttp/psr7 versions prior to 2.12.3 is affected, regardless of PHP core version.

How do I check if my server is vulnerable to CVE-2026-59882?

Run 'composer show guzzlehttp/psr7' or inspect composer.lock for the guzzlehttp/psr7 package version; if it is below 2.12.3, your application is vulnerable.

Does Defensia detect CVE-2026-59882?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If guzzlehttp/psr7 is installed on a monitored server, CVE-2026-59882 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2026-39337CVSS 10ChurchCRM is an open-source church management system. Prior to 7.1.0, critical pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.
CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
CVE-2024-5932CVSS 10The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.14.1 via deserialization of untrusted input from the 'give_title' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to execute code remotely, and to delete arbitrary files.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-59882. Free for 1 server.

Get started free