Amenazas en vivo

Todas las CVE / Js-cookie

CVE-2026-46625Js-cookie Javascript Cookie

Alta 7.5 Sin autenticación

Prioridad
60
CVSS 3.1
7.5
EPSS
—
Requiere autenticación
No
Publicada
10 jun 2026
Actualizada
9 sep 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-1321, CWE-915
SSVC (CISA)
Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: parcial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Qué pasa

JavaScript Cookie is a JavaScript API for handling cookies, client-side. Prior to version 3.0.7, js-cookie's internal assign() helper copies properties with for...in + plain assignment. When the source object is produced by JSON.parse, the JSON object's "__proto__" member is an own enumerable property, so the for…in enumerates it and the target[key] = source[key] write triggers the Object.prototype.__proto__ setter on the fresh target ({}). The result is a per-instance prototype hijack: Object.prototype itself is untouched, but the merged attributes object now inherits attacker-controlled keys. Because the consuming set() function then enumerates the merged object with another for...in, every key the attacker placed on the polluted prototype lands in the resulting Set-Cookie string as an attribute pair. The attacker can set domain=, secure=, samesite=, expires=, and path= on cookies whose attributes the developer thought were locked down. This issue has been patched in version 3.0.7.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Javascript Cookie.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
npm js-cookie < 3.0.7 3.0.7 npm install js-cookie@3.0.7

Según OSV / GitHub Advisories (GHSA-qjx8-664m-686j). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
js-cookiejavascript_cookie< 3.0.7
redhat3scale_api_management2.0
redhatansible_automation_platform2.0
redhatopenshift_aitodas
redhatopenshift_lightspeedtodas
redhatenterprise_linux8.0
redhatenterprise_linux9.0
redhatenterprise_linux10.0

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.