Back to CVE records
High 7.5Published Jun 10, 2026

CVE-2026-46625JavaScript Cookie: Per-instance prototype hijack in assign() enables cookie-attribute injection

Updated under an hour ago ()

Does this affect you?

It affects js-cookie and 16 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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
7.5 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness (CWE)
CWE-1321, CWE-915
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Modified
Record last updated
Sep 9, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
js-cookie js-cookie
js_cookie:js_cookie (from the name)
before 3.0.7
CNA record
from 4.2.0-13 not affected
CISA ADP
from 1783357140 not affected
CISA ADP
from 1787047114 not affected
CISA ADP
Red Hat Red Hat Ansible Automation Platform 2.7
redhat:ansible_automation_platform
from 1787218409 not affected
CISA ADP
from 1785333413 not affected
CISA ADP
from 1787347991 not affected
CISA ADP
from 1782231869 not affected
CISA ADP
Red Hat OpenShift Lightspeed
redhat:openshift_lightspeed
All versions
CISA ADP
2
CISA ADP

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.