CVE-2026-46625

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:js-cookie:javascript_cookie:*:*:*:*:*:node.js:*:*

Configuration 2 (hide)

OR cpe:2.3:a:redhat:3scale_api_management:2.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:ansible_automation_platform:2.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_ai:-:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*

History

28 Aug 2026, 16:18

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:60520 -
References () https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j - Vendor Advisory, Exploit () https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j - Exploit, Vendor Advisory

26 Aug 2026, 20:09

Type Values Removed Values Added
References () https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020 - () https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020 - Patch
References () https://github.com/js-cookie/js-cookie/releases/tag/v3.0.7 - () https://github.com/js-cookie/js-cookie/releases/tag/v3.0.7 - Release Notes
References () https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j - () https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j - Vendor Advisory, Exploit
References () https://access.redhat.com/errata/RHSA-2026:33183 - () https://access.redhat.com/errata/RHSA-2026:33183 - Third Party Advisory
References () https://access.redhat.com/errata/RHSA-2026:36625 - () https://access.redhat.com/errata/RHSA-2026:36625 - Third Party Advisory
References () https://access.redhat.com/errata/RHSA-2026:48126 - () https://access.redhat.com/errata/RHSA-2026:48126 - Third Party Advisory
References () https://access.redhat.com/errata/RHSA-2026:48151 - () https://access.redhat.com/errata/RHSA-2026:48151 - Third Party Advisory
References () https://access.redhat.com/errata/RHSA-2026:49642 - () https://access.redhat.com/errata/RHSA-2026:49642 - Third Party Advisory
References () https://access.redhat.com/errata/RHSA-2026:52768 - () https://access.redhat.com/errata/RHSA-2026:52768 - Third Party Advisory
References () https://access.redhat.com/errata/RHSA-2026:56338 - () https://access.redhat.com/errata/RHSA-2026:56338 - Third Party Advisory
References () https://access.redhat.com/errata/RHSA-2026:56357 - () https://access.redhat.com/errata/RHSA-2026:56357 - Third Party Advisory
References () https://access.redhat.com/errata/RHSA-2026:59153 - () https://access.redhat.com/errata/RHSA-2026:59153 - Third Party Advisory
References () https://access.redhat.com/security/cve/CVE-2026-46625 - () https://access.redhat.com/security/cve/CVE-2026-46625 - Third Party Advisory
References () https://bugzilla.redhat.com/show_bug.cgi?id=2487740 - () https://bugzilla.redhat.com/show_bug.cgi?id=2487740 - Issue Tracking, Third Party Advisory
References () https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46625.json - () https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46625.json - Third Party Advisory
First Time Redhat
Redhat openshift Lightspeed
Redhat 3scale Api Management
Redhat ansible Automation Platform
Redhat enterprise Linux
Redhat openshift Ai
Js-cookie javascript Cookie
Js-cookie
CPE cpe:2.3:a:redhat:3scale_api_management:2.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_ai:-:*:*:*:*:*:*:*
cpe:2.3:a:js-cookie:javascript_cookie:*:*:*:*:*:node.js:*:*
cpe:2.3:a:redhat:ansible_automation_platform:2.0:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*

25 Aug 2026, 13:19

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:59153 -

19 Aug 2026, 12:18

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:56338 -
  • () https://access.redhat.com/errata/RHSA-2026:56357 -

10 Aug 2026, 13:19

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:52768 -

04 Aug 2026, 13:18

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:49642 -

30 Jul 2026, 12:18

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:48126 -
  • () https://access.redhat.com/errata/RHSA-2026:48151 -

23 Jul 2026, 09:10

Type Values Removed Values Added
Summary
  • (es) JavaScript Cookie es una API de JavaScript para manejar cookies, del lado del cliente. Antes de la versión 3.0.7, la función auxiliar interna assign() de js-cookie copia propiedades con for...in + asignación simple. Cuando el objeto fuente es producido por JSON.parse, el miembro __proto__ del objeto JSON es una propiedad enumerable propia, por lo que el for...in lo enumera y la escritura target[key] = source[key] activa el setter Object.prototype.__proto__ en el nuevo objetivo ({}). El resultado es un secuestro de prototipo por instancia: Object.prototype en sí no se modifica, pero el objeto de atributos fusionados ahora hereda claves controladas por el atacante. Debido a que la función set() consumidora luego enumera el objeto fusionado con otro for...in, cada clave que el atacante colocó en el prototipo contaminado termina en la cadena Set-Cookie resultante como un par de atributos. El atacante puede establecer domain=, secure=, samesite=, expires=, y path= en cookies cuyos atributos el desarrollador pensó que estaban bloqueados. Este problema ha sido parcheado en la versión 3.0.7.

08 Jul 2026, 13:16

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:36625 -

30 Jun 2026, 03:20

Type Values Removed Values Added
CWE CWE-915
References
  • () https://access.redhat.com/errata/RHSA-2026:33183 -
  • () https://access.redhat.com/security/cve/CVE-2026-46625 -
  • () https://bugzilla.redhat.com/show_bug.cgi?id=2487740 -
  • () https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46625.json -

11 Jun 2026, 17:16

Type Values Removed Values Added
References () https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j - () https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j -

10 Jun 2026, 22:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-06-10 22:16

Updated : 2026-09-09 13:20


NVD link : CVE-2026-46625

Mitre link : CVE-2026-46625

CVE.ORG link : CVE-2026-46625


JSON object : View

Products Affected

redhat

  • openshift_ai
  • 3scale_api_management
  • openshift_lightspeed
  • enterprise_linux
  • ansible_automation_platform

js-cookie

  • javascript_cookie
CWE
CWE-1321

Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

CWE-915

Improperly Controlled Modification of Dynamically-Determined Object Attributes