Vulnerability
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.
123 advisories report this vulnerability, across 5 ecosystems.
Advisories
- CGA-2234-94pp-jxm2
- CGA-2425-h6ww-3mrj
- CGA-24pc-p334-wqqj
- CGA-26cm-6236-ghwj
- CGA-2cx4-hjfg-wwpg
- CGA-2gw6-524x-2466
- CGA-2hxh-4w55-6g7g
- CGA-2mq3-5mc4-22g3
- CGA-2q2g-jc57-hp8w
- CGA-325x-p3h4-rf2p
- CGA-339c-4437-6c2m
- CGA-35qr-cppm-934c
- CGA-36cr-23h6-gw6f
- CGA-38r3-fq9h-2g4w
- CGA-3c2r-45p6-c4vg
- CGA-3f57-h4qx-q342
- CGA-3jmj-2ggq-734w
- CGA-3qv5-fjqw-vmhc
- CGA-3vj4-9rvp-398p
- CGA-3vr6-h557-x9v9
- CGA-46xv-f9rw-6fcm
- CGA-47g5-r223-3x5w
- CGA-4fhq-fjfw-jwhp
- CGA-4j8r-r7gx-4vvv
- CGA-574f-vwf6-c94g
- CGA-5865-8qf4-fc8h
- CGA-5jf3-735m-c2pp
- CGA-5rv8-hrh7-67wj
- CGA-5vj3-fc9w-99mc
- CGA-65c6-xx37-xw72
- CGA-66hc-47c4-98mp
- CGA-6799-x8c6-w9jw
- CGA-6hrr-75h6-c2pw
- CGA-6rqj-5wx5-q84p
- CGA-6wjm-p28x-wv7x
- CGA-73xj-x6xr-qq7h
- CGA-76m6-cpmg-f6hw
- CGA-76pc-pwxj-xgx8
- CGA-7fch-2fj4-8c7g
- CGA-7j68-8hgp-rq27
- CGA-7q6g-9v4r-9gqp
- CGA-86r2-3p9g-gxmg
- CGA-8fc9-73vc-8j23
- CGA-8frg-9mvq-mjpw
- CGA-8mx2-xgr7-6gjr
- CGA-8r36-x7fm-6c4h
- CGA-8xfc-gh3q-mxrv
- CGA-9hqw-7f7x-m383
- CGA-9r8v-grvj-4m3c
- CGA-9v85-mj39-3j36
- CGA-9xrc-pjm4-6q2m
- CGA-c2g5-c369-rg64
- CGA-c6wx-89jg-r27c
- CGA-c9rm-gcwv-j48x
- CGA-cwr5-v57c-fqfc
- CGA-f42q-2v39-39r9
- CGA-f448-7h56-fff2
- CGA-fphp-fgg8-cxff
- CGA-g29p-j3j3-49q4
- CGA-g3g2-vqhm-hh3p
- CGA-g5jm-mcqm-w2gf
- CGA-g79j-f8rp-643c
- CGA-ghgx-29p2-w8mp
- CGA-gj73-fjvx-m52j
- CGA-gjr2-gw4m-ccwr
- CGA-gp9c-53fg-5458
- CGA-h2wc-qvmj-7q68
- CGA-h9jj-fv38-8hfh
- CGA-hc4j-vww3-p8g9
- CGA-hcq8-7755-j833
- CGA-hcq9-cjgp-hjm5
- CGA-hf69-3whj-w4cm
- CGA-hmhw-hw8c-7cwc
- CGA-hmj3-2jx4-2qq4
- CGA-hr5q-3gp8-77gp
- CGA-j8q2-h6p4-5hmq
- CGA-jwqr-h69f-2hwm
- CGA-m2pq-cqv5-vgg4
- CGA-m55g-8pjm-p5wp
- CGA-m823-jv7c-cv4w
- CGA-m8w6-fm5x-pcpp
- CGA-m93v-mgx2-3jp7
- CGA-mc2x-2hr6-h925
- CGA-mg6m-mh6c-9297
- CGA-mj8x-9mf8-m8h2
- CGA-mm44-ggvh-hqm4
- CGA-mmh9-r8m5-95r5
- CGA-mqv7-5hc8-64px
- CGA-mrqf-w5vc-67fh
- CGA-p3m2-mgjm-98g2
- CGA-pcp4-mxh2-cvgr
- CGA-pgc5-rh4j-wmxq
- CGA-phg6-4f3r-vrhm
- CGA-q947-r78p-9rvv
- CGA-q9vw-qx6j-7h65
- CGA-qqgw-wpx8-p7vx
- CGA-r484-48rp-wf8r
- CGA-r5r3-chqx-5w32
- CGA-rc4r-8c4m-qqmg
- CGA-rfq7-2fjm-v7mw
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2026-46625.
References
- https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020
- https://github.com/js-cookie/js-cookie/releases/tag/v3.0.7
- https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j
- https://access.redhat.com/errata/RHSA-2026:33183
- https://access.redhat.com/errata/RHSA-2026:36625
- https://access.redhat.com/errata/RHSA-2026:48126
- https://access.redhat.com/errata/RHSA-2026:48151
- https://access.redhat.com/errata/RHSA-2026:49642
- https://access.redhat.com/errata/RHSA-2026:52768
- https://access.redhat.com/errata/RHSA-2026:56338
- https://access.redhat.com/errata/RHSA-2026:56357
- https://access.redhat.com/errata/RHSA-2026:59153
- https://access.redhat.com/errata/RHSA-2026:60520
- 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