High severity · published Jun 10, 2026
CVE-2026-46625
JavaScript Cookie: Per-instance prototype hijack in assign() enables cookie-attribute injection
7.5
CVSS
0.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 60% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
JS
js-cookie · js-cookie
< 3.0.7 · source: vendor
3A
3scale Api Management · Redhat
2.0 · source: NVD
AA
Ansible Automation Platform · Redhat
2.0 · source: NVD
EL
Enterprise Linux · Redhat
8.0; 9.0; 10.0 · source: NVD
JC
Javascript Cookie · Js-cookie
before 3.0.7 · source: NVD
OA
Openshift AI · Redhat
All versions, or not specified · source: NVD
OL
Openshift Lightspeed · Redhat
All versions, or not specified · source: NVD, CISA
C4
Cryostat 4 on RHEL 9 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat 3scale API Management Platform 2 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Advanced Cluster Security for Kubernetes 4.10 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Ansible Automation Platform 2 · Red Hat
All versions, or not specified · source: CISA
RH
Red Hat Ansible Automation Platform 2.1 · Red Hat
All versions, or not specified · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-46625
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-46625
Patch
https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020
Release Notes
https://github.com/js-cookie/js-cookie/releases/tag/v3.0.7
Exploit
https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j
Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:33183
Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:36625
Third Party Advisory
https://access.redhat.com/errata/RHSA-2026:48126
