Skip to content

CVE-2026-55767 (Medium) detected in guzzlehttp/guzzle-7.10.0 #34

Description

@mend-bolt-for-github

CVE-2026-55767 - Medium Severity Vulnerability

Vulnerable Library - guzzlehttp/guzzle-7.10.0

Guzzle is a PHP HTTP client library

Library home page: https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4

Dependency Hierarchy:

  • guzzlehttp/guzzle-7.10.0 (Vulnerable Library)

Found in HEAD commit: 81f84f058af0cbca57ee22476557ded21c6813aa

Found in base branch: master

Vulnerability Details

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.

Publish Date: 2026-06-19

URL: CVE-2026-55767

CVSS 3 Score Details (5.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-cwxw-98qj-8qjx

Release Date: 2026-06-19

Fix Resolution: guzzlehttp/guzzle - 7.12.1


Step up your Open Source Security Game with Mend here

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions