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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.92%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-21T21:20:31.000Z
- Modified: 2026-09-10T03:50:47.374Z
- Also known as: GHSA-qjx8-664m-686j
- Weaknesses: CWE-915, CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- js-cookie js-cookie: < 3.0.7
- cryostat/cryostat-grafana-dashboard-rhel9: no versions given (not affected: from 4.2.0-13 before *)
- advanced-cluster-security/rhacs-main-rhel8: no versions given (not affected: from 1783357140 before *)
- ansible-automation-platform/automation-portal: no versions given (not affected: from 1787047114 before *; from 1787047188 before *)
- ansible-automation-platform-27/gateway-rhel9: no versions given (not affected: from 1787218409 before *)
- rhdh/red-hat-developer-hub-backstage-plugin-lightspeed: no versions given (not affected: from 1785333413 before *)
- rhdh/red-hat-developer-hub-backstage-plugin-orchestrator: no versions given (not affected: from 1785340831 before *)
- rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-form-widgets: no versions given (not affected: from 1785332928 before *)
- rhdh/rhdh-hub-rhel9: no versions given (not affected: from 1785411652 before *; from 1785972843 before *)
- rhoai/odh-dashboard-rhel9: no versions given (not affected: from 1787347991 before *)
- rhoai/odh-mod-arch-automl-rhel9: no versions given (not affected: from 1787250508 before *)
- rhoai/odh-mod-arch-autorag-rhel9: no versions given (not affected: from 1787251550 before *)
- rhoai/odh-mod-arch-gen-ai-rhel9: no versions given (not affected: from 1786611759 before *)
- rhoai/odh-mod-arch-maas-rhel9: no versions given (not affected: from 1787251250 before *)
- rhoai/odh-mod-arch-mlflow-rhel9: no versions given (not affected: from 1786612219 before *)
- rhoai/odh-mod-arch-model-registry-rhel9: no versions given (not affected: from 1787250617 before *)
- openshift-service-mesh/kiali-ossmc-rhel9: no versions given (not affected: from 1782231869 before *)
- openshift-service-mesh/kiali-rhel9: no versions given (not affected: from 1782201466 before *)
- openshift-lightspeed/lightspeed-console-plugin-419-rhel9: no versions given
- openshift-lightspeed/lightspeed-console-plugin-rhel9: no versions given
- 3scale-amp21/system: no versions given
- 3scale-amp22/system: no versions given
- 3scale-amp2/system-rhel7: no versions given
- 3scale-amp2/system-rhel8: no versions given
- 3scale-amp2/system-rhel9: no versions given
- automation-gateway: no versions given
- automation-hub: no versions given
- automation-platform-ui: no versions given
- python3.11-galaxy-ng: no versions given
- python3.12-galaxy-ng: no versions given
- python3x-galaxy-ng: no versions given
- python-galaxy-ng: no versions given
- discovery/discovery-ui-rhel9: no versions given
- grafana-pcp: no versions given
- grafana: no versions given
- js-cookie: no versions given
- rhoai/odh-mod-arch-eval-hub-rhel9: no versions given
- openshift4/ose-agent-installer-ui-rhel9: no versions given
- js-cookie (npm): before 3.0.7
- js-cookie javascript_cookie: before 3.0.7
- redhat 3scale_api_management: 2.0
- redhat ansible_automation_platform: 2.0
- redhat openshift_ai: no versions given
- redhat openshift_lightspeed: no versions given
- redhat enterprise_linux: 8.0; 9.0; 10.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j> (exploit, vendor-advisory, web)
- <https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020> (patch, web)
- <https://github.com/js-cookie/js-cookie/releases/tag/v3.0.7> (release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-46625> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2487740> (issue-tracking, third-party-advisory)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46625.json> (third-party-advisory)
- <https://access.redhat.com/errata/RHSA-2026:48151> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:36625> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:56338> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:56357> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:59153> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:48126> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:49642> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:52768> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:60520> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:33183> (third-party-advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-46625> (advisory)
- <https://github.com/js-cookie/js-cookie> (package)

## Sources

- CVE List: [CVE-2026-46625](https://www.cve.org/CVERecord?id=CVE-2026-46625), CVE Terms of Use, modified 2026-09-09
- GitHub Advisory Database: [GHSA-qjx8-664m-686j](https://github.com/advisories/GHSA-qjx8-664m-686j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-46625](https://nvd.nist.gov/vuln/detail/CVE-2026-46625), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-46625 · Whole record: https://cve.day/CVE-2026-46625.json · Rebuilt by cve.day 2026-11-25T22:59:24.378Z
