Skip to content
Laskyr

guzzlehttp/guzzle security advisory

CVE-2026-69245: Guzzle: Noncanonical cookie domain keeps subdomain scope

CVE-2026-69245 is a medium-severity session fixation vulnerability in the PHP package guzzlehttp/guzzle (CVSS 6.5), published 3 August 2026. It is fixed in 7.15.2 and 8.0.1, one per release line; earlier versions on each line are affected. It can be exploited without an account.

medium 6.5 published 2026-08-03 · updated 2026-09-08

Fixed in guzzlehttp/guzzle 7.15.2 and 8.0.1

This session fixation issue affects guzzlehttp/guzzle in 2 release lines: < 7.15.2; >= 8.0.0, < 8.0.1. Upgrade to the fixed version for your release line (7.15.2 and 8.0.1). The newest release, 8.3.1, is not affected.

Affected versions
< 7.15.2
>= 8.0.0, < 8.0.1
Fixed in
7.15.2, 8.0.1
Newest release
8.3.1
Severity
Medium · CVSS 6.5
Type
Session fixation
CWE-180, CWE-346, CWE-384
Exploited in the wild
Not on the CISA KEV list
checked 2026-11-04

Is your guzzlehttp/guzzle version affected?

Run composer show guzzlehttp/guzzle in your project, then enter the version. We check it against this and every other known guzzlehttp/guzzle advisory.

Who can exploit CVE-2026-69245

CVSS vector (scored by GitHub): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Your app is only exposed if it uses the affected part of guzzlehttp/guzzle. The advisory below says which part that is. If you are not sure, upgrade anyway: it costs less than finding out.

How to fix CVE-2026-69245 in guzzlehttp/guzzle

  1. Find the installed version: composer show guzzlehttp/guzzle. If you never required it yourself, composer why guzzlehttp/guzzle shows which package pulls it in.
  2. Update it: composer update guzzlehttp/guzzle --with-all-dependencies. You need the fixed version for your release line (7.15.2 and 8.0.1).
  3. If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example "guzzlehttp/guzzle": "^8.0.1" if you can take that version), or upgrade the package that requires it.
  4. Run composer audit. It reads the same advisory data and should no longer list CVE-2026-69245.
  5. Commit composer.lock and deploy it. On the server, run composer install --no-dev from the lock file, not composer update.

If you cannot upgrade yet

General hardening for session fixation issues while the upgrade waits. None of it replaces the fix.

The CVE-2026-69245 advisory

Guzzle is an extensible PHP HTTP client. Prior to 7.15.2 and 8.0.1, SetCookie::matchesDomain() gives every subdomain of a cookie Domain that cookie unless SetCookie::matchesDomain() recognizes the Domain as an IP literal or a numeric host, and the decision comes from the domain's own text, so two spellings a transport reads as an address keep subdomain scope. Hexadecimal and mixed-base forms such as 0x7f000001 and 0177.0.0.0x1 go unrecognized while libcurl 8.21.0 reads both as 127.0.0.1. A percent-escaped Domain keeps that scope on both branches because percent-decoding sits above numeric parsing, so 192.168.0.%31 and 127.0.0.1%2e are registered names in the URI grammar rather than address literals, and no numeric rule in any base classifies them, while libcurl decodes the host before resolving and reads them as 192.168.0.1 and 127.0.0.1. A cookie stored for Domain=0x7f000001 is placed in the Cookie header of a request to evil.0x7f000001, disclosing a session identifier or token to a host that is not that address, and a response from evil.0x7f000001 setting Domain=0x7f000001 is accepted into the jar and replayed to the address, so a server answering for the look-alike name can fix a session or set application state. Exploitation requires the application to enable cookie support, address an origin by one of these spellings, and contact a host whose name ends in that spelling. This issue is fixed in versions 7.15.2 and 8.0.1.

Description from the CVE record, published by GitHub (the CVE Numbering Authority), via the NVD entry for CVE-2026-69245. Advisory title: “Guzzle: Noncanonical cookie domain keeps subdomain scope”.

References

Other guzzlehttp/guzzle advisories

Related

Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.

Ask about a fix

Where this data comes from

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit