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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-06-10 · Modified: 2026-09-09
- Aliases: UBUNTU-CVE-2026-46625, DEBIAN-CVE-2026-46625, CGA-3c2r-45p6-c4vg, CGA-6799-x8c6-w9jw, CGA-9hqw-7f7x-m383, CGA-hmhw-hw8c-7cwc, GHSA-qjx8-664m-686j, 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-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-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-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-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, CGA-rh9r-7gwm-6m8g, CGA-rmmv-c8vm-mxg2, CGA-rpp9-5gwr-prwc, CGA-rppm-394j-345h, CGA-v376-rfjv-844w, CGA-v388-vc4g-93x3, CGA-v3f2-fv79-h3qf, CGA-v3v5-37m8-g7g8, CGA-vqcq-vr6h-9xv4, CGA-vqp9-35c2-r8fg, CGA-w22m-3337-xw24, CGA-w7cq-j32x-f789, CGA-whmq-5x76-qm39, CGA-wmj4-mjph-q78p, CGA-x4xh-jjmh-qfm4, CGA-x6mh-p4h6-f72m, CGA-x9hg-j2p2-9c9r, CGA-xfhw-rxjc-vm69, CGA-xq7g-x42h-8rvw, CGA-xw9j-7w9v-4298
- Record: https://cvemate.com/vulnerability/CVE-2026-46625 · JSON: https://cvemate.com/vulnerability/CVE-2026-46625/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.919%, percentile 61.478%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 71)

- chainguard commercial-gitlab-rails-ee-19.1 (Chainguard): \< 19.1.7-r3
- chainguard commercial-gitlab-rails-ee-19.2 (Chainguard): \< 19.2.7-r1
- chainguard commercial-gitlab-rails-ee-19.3 (Chainguard): \< 19.3.3-r1
- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded) \| \< 19.1.9-r0
- chainguard commercial-gitlab-rails-ee-fips-19.2 (Chainguard): \< 19.2.7-r1
- chainguard commercial-gitlab-rails-ee-fips-19.3 (Chainguard): \< 19.3.3-r1
- chainguard drupal-11.3 (Chainguard): \< 11.3.13-r3
- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded) \| \< 18.11.13-r0
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded) \| \< 19.0.10-r0
- chainguard gitlab-rails-ce-19.1 (Chainguard): \< 19.1.7-r6
- chainguard gitlab-rails-ce-19.2 (Chainguard): \< 19.2.5-r2
- chainguard gitlab-rails-ce-19.3 (Chainguard): \< 19.3.1-r6
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)

## References (first 20 of 22)

- <https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j>
- <https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020>
- <https://github.com/js-cookie/js-cookie/releases/tag/v3.0.7>
- <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>
- <https://access.redhat.com/errata/RHSA-2026:48151>
- <https://access.redhat.com/errata/RHSA-2026:36625>
- <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:48126>
- <https://access.redhat.com/errata/RHSA-2026:49642>
- <https://access.redhat.com/errata/RHSA-2026:52768>
- <https://access.redhat.com/errata/RHSA-2026:60520>
- <https://access.redhat.com/errata/RHSA-2026:33183>
- <https://ubuntu.com/security/CVE-2026-46625>
- <https://www.cve.org/CVERecord?id=CVE-2026-46625>
- <https://security-tracker.debian.org/tracker/CVE-2026-46625>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46625.json>

---

Data as of 2026-12-05T03:15:02.904Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
