Skip to content
7.5 High

CVE-2026-46625 JavaScript Cookie is a JavaScript API for handling cookies, client-side

Description

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.

Affected products and versions

Product Affected versions Fixed in
js-cookie 3.0 earliest → < 3.0.7 3.0.7
Red Hat OpenShift Service Mesh 3.3 1782201466 earliest → < 1782201466 1782201466
Cryostat 4 Versions not published
OpenShift Lightspeed Versions not published
Red Hat 3scale API Management Platform 2 Versions not published
Red Hat Advanced Cluster Security 4 Versions not published
Red Hat Developer Hub Versions not published
Red Hat JBoss Enterprise Application Platform 7 Versions not published
Red Hat OpenShift AI (RHOAI) Versions not published
Show the 18 other branches
Product Affected versions Fixed in
Red Hat JBoss Enterprise Application Platform 8 Versions not published
Red Hat JBoss Enterprise Application Platform Expansion Pack Versions not published
Red Hat Ansible Automation Platform 2 Versions not published
Red Hat Discovery 2 Versions not published
Red Hat Enterprise Linux 10 Versions not published
Red Hat Enterprise Linux 8 Versions not published
Red Hat Enterprise Linux 9 Versions not published
Red Hat OpenShift Container Platform 4 Versions not published
Self-service automation portal 2 Versions not published
Red Hat Advanced Cluster Security for Kubernetes 4.10 1783357140 earliest → < 1783357140 1783357140
Cryostat 4 on RHEL 9 4.2 earliest → < 4.2.0-13 4.2.0-13
Red Hat Developer Hub 1.10 1785411652 earliest → < 1785411652 1785411652
Red Hat Developer Hub 1.9 1785972843 earliest → < 1785972843 1785972843
Red Hat Ansible Automation Platform 2.1 1787047114 earliest → < 1787047114 1787047114
Red Hat Ansible Automation Platform 2.2 1787047188 earliest → < 1787047188 1787047188
Red Hat Ansible Automation Platform 2.7 1787218409 earliest → < 1787218409 1787218409
Red Hat OpenShift AI 3.4 1787250617 earliest → < 1787250617 1787250617
Self-service automation portal 2.1 1787047114 earliest → < 1787047114 1787047114

References

Timeline

  1. Published
  2. Last modified
Track this CVE