CVE-2026-59883·PHP vulnerability
Guzzle is an extensible PHP HTTP client. Prior to 7.12.3, CookieJar did not restrict cookies scoped to IP-address or bare-numeric Domain values to the exact host that set them, because SetCookie::matchesDomain() applied ordinary suffix matching to domains such as 192.168.0.1, [::1], or 1, allowing cross-host cookie disclosure, cookie injection, or session fixation. This issue is fixed in version 7.12.3.
- Severity
- medium
- Software
- PHP
- Fixed in
- 7.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.12% — higher than 2% 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: 7.12.3
Fixed in: 7.12.3
How to fix this CVE
Update PHP and the Guzzle HTTP client library to version 7.12.3 or later to address a cookie domain validation bypass in the CookieJar component. This vulnerability allows attackers to inject or steal cookies across different hosts when IP addresses or numeric domains are used, potentially leading to session hijacking. Ensure all applications using Guzzle for HTTP requests are patched immediately.
sudo dnf update phpDefensia detects this vulnerability
How to check if you are affected
- Check installed Guzzle version: composer show guzzle/guzzle | grep Version
- Verify PHP version: php -v
- Search application logs for unexpected Set-Cookie headers or cookie manipulation: grep -r 'Set-Cookie' /var/log/php-fpm/ /var/log/apache2/ /var/log/nginx/
- Confirm the fix: composer show guzzle/guzzle and verify the version is >= 7.12.3
FAQ
What is CVE-2026-59883?
This vulnerability exists in Guzzle's CookieJar component, where it fails to properly validate cookie domain restrictions for IP addresses and numeric-only domains. An attacker can exploit this to set cookies that apply to multiple hosts instead of just the originating host, enabling session fixation or cookie theft attacks.
Is CVE-2026-59883 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available.
What versions of PHP and Guzzle are affected by CVE-2026-59883?
The vulnerability affects Guzzle versions prior to 7.12.3. It impacts any PHP application that uses Guzzle for HTTP client functionality with versions below 7.12.3.
How do I check if my server is vulnerable to CVE-2026-59883?
Run: composer show guzzle/guzzle | grep Version. If the version is below 7.12.3, your installation is vulnerable. Also verify with: php -m | grep curl to ensure the HTTP client is active.
Does Defensia detect CVE-2026-59883?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Guzzle or PHP is installed on a monitored server, CVE-2026-59883 will appear in your dashboard with remediation steps.
Related PHP CVEs
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-59883. Free for 1 server.
Get started free