Description
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.
Published: 2026-07-08
Score: 4.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Guzzle’s CookieJar implementation incorrectly applies suffix matching when determining whether a cookie’s domain value is acceptable. For IP‐address or bare numeric domains such as 192.168.0.1, [::1], or 1, the logic treats them like ordinary hostnames, allowing a Set‑Cookie header sent for one numeric domain to be accepted for another host that shares the same string. The result is that an attacker can read other hosts’ cookies, inject new cookies, or perform session fixation by placing malicious cookies into a client that uses a CookieJar. This behavior demonstrates weaknesses summarized by CWE‑346 and CWE‑384.

Affected Systems

The Guzzle PHP HTTP client is affected. All releases prior to version 7.12.3 allow the flaw; the bug is fixed in 7.12.3 and later versions. The vendor is guzzle:guzzle.

Risk and Exploitability

The CVSS base score of 4.7 indicates moderate severity. The EPSS score is reported as less than 1 %, reflecting a very low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that an attacker must control an HTTP server capable of sending a Set‑Cookie header with an IP‑address or numeric domain value, and that the target must be a Guzzle client configured to use a CookieJar. Successful exploitation would enable the attacker to retrieve or inject cookies belonging to other hosts, potentially leading to session fixation or hijacking, but the overall risk remains low due to limited exploitation probability.

Generated by OpenCVE AI on August 3, 2026 at 04:44 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Guzzle to 7.12.3 or later to apply the official domain‑matching fix.
  • If an upgrade is not immediately possible, configure Guzzle to use a CookieJar that accepts only host‑only cookies or disable the CookieJar entirely so that cookies with numeric domain values are ignored or rejected.
  • Audit your application and any upstream servers to identify and reject Set‑Cookie headers that contain IP‑address or bare‑numeric domain values.

Generated by OpenCVE AI on August 3, 2026 at 04:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-g446-98w2-8p5w Guzzle: Cookie Disclosure and Injection via IP-Address Domains
History

Fri, 10 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
First Time appeared Guzzlephp
Guzzlephp guzzle
Vendors & Products Guzzlephp
Guzzlephp guzzle

Thu, 09 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 08 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Guzzle: Cookie Disclosure and Injection via IP-Address Domains
Weaknesses CWE-346
CWE-384
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

Guzzlephp Guzzle
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-09T13:49:43.875Z

Reserved: 2026-07-07T16:40:07.982Z

Link: CVE-2026-59883

cve-icon Vulnrichment

Updated: 2026-07-09T13:49:40.599Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-08T17:17:26.737

Modified: 2026-07-13T14:01:39.700

Link: CVE-2026-59883

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T04:45:03Z

Weaknesses