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

The flaw lies in Guzzle’s CookieJar, which does not enforce host‑only scoping for cookies that have an IP‑address or bare‑numeric domain value. SetCookie::matchesDomain() applies ordinary suffix matching, so a cookie defined for a numeric domain such as 192.168.0.1, [::1], or 1 can be matched by another host that uses the same string. An attacker that can control an HTTP server can set a Set‑Cookie header with such a domain value, and any Guzzle client that accepts the cookie will store it for a different host. This enables cross‑host cookie disclosure, cookie injection, or session fixation, constituting CWE‑346 and CWE‑384 weaknesses.

Affected Systems

The affected product is the Guzzle PHP HTTP client. All releases prior to 7.12.3 are impacted; version 7.12.3 and later contain the fix.

Risk and Exploitability

The CVSS base score of 4.7 indicates a moderate severity. The EPSS score is less than 1%, indicating a very low likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The attack vector requires an adversary to control an HTTP server that sends a Set‑Cookie header with an IP‑address or numeric domain value, and a Guzzle client that uses a CookieJar. If exploited, the attacker can read or inject cookies belonging to other hosts, potentially leading to session fixation or hijacking. Successful exploitation depends on the configuration of the target application and the presence of a Guzzle CookieJar.

Generated by OpenCVE AI on July 29, 2026 at 13:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Guzzle to version 7.12.3 or later to apply the official fix that corrects the domain‑matching logic.
  • If an upgrade is not possible immediately, configure Guzzle to use a CookieJar that only accepts 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 ensure no Set‑Cookie headers contain an IP‑address or bare‑numeric domain value, and reject such headers if they appear.

Generated by OpenCVE AI on July 29, 2026 at 13:55 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

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T14:00:03Z

Weaknesses