Medium

guzzlehttp/guzzle: Dot-Only Cookie Domains Match All Hosts

  • Disclosed: 19.06.2026
  • Updated: 11.10.2026 10:22

Impact

CookieJar incorrectly accepts cookies with a dot-only Domain attribute, such as Domain=., Domain=.., Domain=..., and whitespace-padded variants such as Domain= . . In affected versions, SetCookie::matchesDomain() removes leading dots from the cookie domain, normalizing dot-only values to the empty string; SetCookie::validate() only rejected a strictly empty domain, so these cookies could be stored and the empty normalized domain was treated as matching any request host.

An attacker-controlled origin that an application requests with a shared cookie jar can therefore set a cookie that Guzzle later sends to unrelated hosts using the same jar. This may allow cookie injection or session fixation against downstream services, depending on how those services interpret the injected cookie. Applications are affected when they use Guzzle's cookie support, for example new Client(['cookies' => true]) or an explicit shared CookieJar, and reuse the same jar across attacker-controlled and trusted origins.

Applications that do not use Guzzle's cookie support, or that use separate cookie jars per origin or trust boundary, are not affected. This issue is distinct from public suffix list validation: dot-only domains contain no domain label and should not match unrelated hosts.

Patches

The issue is patched in 7.12.1 and later. Starting in that release, Guzzle rejects dot-only cookie Domain attributes and prevents an empty normalized cookie domain from matching any request host.

Workarounds

If you cannot upgrade immediately, do not reuse the same CookieJar instance across untrusted and trusted origins. Use separate cookie jars per origin or trust boundary, or disable cookie handling for requests to untrusted hosts.

Avoid using new Client(['cookies' => true]) for clients that may contact unrelated hosts with different trust levels, because that option creates one shared jar for the client.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package guzzlehttp/guzzle < 7.12.1 7.12.1

References

CVSS score 5.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
Weakness (CWE)
CWE-1286, CWE-346
Platform
Composer
Package
guzzlehttp/guzzle
Disclosed
19.06.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-cwxw-98qj-8qjx - CC BY 4.0

Vulnerability history: guzzlehttp/guzzle

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (14) in the archive
Total entries
14
First → latest
04.2022 08.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 6
  • Medium 8

Disclosures per year

  1. 2022: 5
  2. 2023: 0
  3. 2024: 0
  4. 2025: 0
  5. 2026: 9
Severity:
  1. High · 7.2 CVE-2026-69246 < 7.15.2, >= 8.0.0, < 8.0.1 7.15.2, 8.0.1
  2. guzzlehttp/guzzle: Dot-Only Cookie Domains Match All Hosts this entry
    Medium · 5.8 CVE-2026-55767 < 7.12.1 7.12.1
  3. High · 7.7 CVE-2022-31091 < 6.5.8, >= 7.0.0, < 7.4.5 6.5.8, 7.4.5
  4. High · 7.7 CVE-2022-31090 < 6.5.8, >= 7.0.0, < 7.4.5 6.5.8, 7.4.5
  5. High · 7.5 CVE-2022-31042 >= 4.0.0, < 6.5.7, >= 7.0.0, < 7.4.4 6.5.7, 7.4.4
  6. High · 8.0 CVE-2022-29248 < 6.5.6, >= 7.0.0, < 7.4.3 6.5.6, 7.4.3
  7. High · 8.1 CVE-2016-5385 >= 6, < 6.2.1, >= 4.0.0-rc2, < 4.2.4, >= 5, < 5.3.1 6.2.1, 4.2.4, 5.3.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.