Media

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

  • Publicada: 19.06.2026
  • Actualizado: 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.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de Composer guzzlehttp/guzzle < 7.12.1 7.12.1

Referencias

Puntuación CVSS 5.8/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
Debilidad (CWE)
CWE-1286, CWE-346
Plataforma
Composer
Paquete
guzzlehttp/guzzle
Publicada
19.06.2026
Actualizado
11.10.2026 10:22

Fuentes y licencias

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

Historial de vulnerabilidades: guzzlehttp/guzzle

Todas las vulnerabilidades publicadas de este paquete (Paquete de Composer), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (14) en el archivo
Entradas en total
14
Primera → última
04.2022 08.2026
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Alta 6
  • Media 8

Divulgaciones por año

  1. 2022: 5
  2. 2023: 0
  3. 2024: 0
  4. 2025: 0
  5. 2026: 9
Gravedad:
  1. Alta · 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 esta entrada
    Media · 5.8 CVE-2026-55767 < 7.12.1 7.12.1
  3. Alta · 7.7 CVE-2022-31091 < 6.5.8, >= 7.0.0, < 7.4.5 6.5.8, 7.4.5
  4. Alta · 7.7 CVE-2022-31090 < 6.5.8, >= 7.0.0, < 7.4.5 6.5.8, 7.4.5
  5. Alta · 7.5 CVE-2022-31042 >= 4.0.0, < 6.5.7, >= 7.0.0, < 7.4.4 6.5.7, 7.4.4
  6. Alta · 8.0 CVE-2022-29248 < 6.5.6, >= 7.0.0, < 7.4.3 6.5.6, 7.4.3
  7. Alta · 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

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.