CVE-2026-46625 JavaScript Cookie: Per-instance prototype hijack in assign() enables cookie-attribute injection
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
57 packages: 8 fixed, 2 partially fixed, 43 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-js-cookie(Debian 12) | = 3.0.1+~3.0.0-3; = 3.0.7+~3.0.6-1; = 3.0.7+~3.0.6-2; = 3.0.8+~3.0.6-1 +1 more | No fix listed | No fix yet |
| debian/node-js-cookie(Debian 13) | = 3.0.1+~3.0.0-3; = 3.0.7+~3.0.6-1; = 3.0.7+~3.0.6-2; = 3.0.8+~3.0.6-1 +1 more | No fix listed | No fix yet |
| redhat enterprise linux | = 8; = 8.0; = 9; = 9.0 +3 more | No fix listed | No fix yet |
| redhat jboss enterprise application platform | = 8; All versions | No fix listed | No fix yet |
| redhat jbosseapxp | All versions | No fix listed | No fix yet |
| redhat openshift lightspeed | All versions | No fix listed | No fix yet |
| redhat red hat 3scale amp | = 2; All versions | No fix listed | No fix yet |
| redhat/3scale-amp2/system-rhel9(Red Hat 3scale 2.13) | All versions | No fix listed | No fix yet |
| redhat/advanced-cluster-security/rhacs-main-rhel8:1783357140(Red Hat advanced_cluster_security 4.10 el8) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/gateway-rhel9:1787218409(Red Hat ansible_automation_platform 2.7 el9) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform/automation-portal:1787047114(Red Hat ansible_portal 2.1) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform/automation-portal:1787047188(Red Hat ansible_portal 2.2) | All versions | No fix listed | No fix yet |
| redhat/automation-gateway(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/automation-hub(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/automation-platform-ui(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/cryostat/cryostat-grafana-dashboard-rhel9:4.2.0-13(Red Hat cryostat 4 el9) | All versions | No fix listed | No fix yet |
| redhat/js-cookie(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-console-plugin-419-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-lightspeed/lightspeed-console-plugin-rhel9(Red Hat openshift_lightspeed 1) | All versions | No fix listed | No fix yet |
| redhat/openshift-service-mesh/kiali-ossmc-rhel9:1782231869(Red Hat service_mesh 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/openshift-service-mesh/kiali-rhel9:1782201466(Red Hat service_mesh 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/openshift5/ose-agent-installer-ui-rhel9(Red Hat openshift 5) | All versions | No fix listed | No fix yet |
| redhat/python-galaxy-ng(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/python3.11-galaxy-ng(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/python3x-galaxy-ng(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed:1785333413(Red Hat rhdh 1.10 el9) | All versions | No fix listed | No fix yet |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-form-widgets:1785332928(Red Hat rhdh 1.10 el9) | All versions | No fix listed | No fix yet |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator:1785340831(Red Hat rhdh 1.10 el9) | All versions | No fix listed | No fix yet |
| redhat/rhdh/rhdh-hub-rhel9:1785411652(Red Hat rhdh 1.10 el9) | All versions | No fix listed | No fix yet |
… and 27 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| js-cookie | = < 3.0.7 | No fix listed |
| redhat cryostat | < 4.2.0-13 | 4.2.0-13 |
| redhat advanced cluster security | < 1783357140 | 1783357140 |
| redhat ansible portal | < 1787047114 | 1787047114 |
| redhat ansible portal | < 1787047188 | 1787047188 |
| redhat ansible automation platform | < 1787218409 | 1787218409 |
| redhat rhdh | < 1785333413 | 1785333413 |
| redhat rhdh | < 1785340831 | 1785340831 |
| redhat rhdh | < 1785332928 | 1785332928 |
| redhat rhdh | < 1785411652 | 1785411652 |
| redhat rhdh | < 1785972843 | 1785972843 |
| redhat openshift ai | < 1787347991 | 1787347991 |
| redhat openshift ai | < 1787250508 | 1787250508 |
| redhat openshift ai | < 1787251550 | 1787251550 |
| redhat openshift ai | < 1786611759 | 1786611759 |
| redhat openshift ai | < 1787251250 | 1787251250 |
| redhat openshift ai | < 1786612219 | 1786612219 |
| redhat openshift ai | < 1787250617 | 1787250617 |
| redhat service mesh | < 1782231869 | 1782231869 |
| redhat service mesh | < 1782201466 | 1782201466 |
| redhat openshift lightspeed | All versions | No fix listed |
| redhat red hat 3scale amp | = 2 | No fix listed |
| redhat red hat 3scale amp | All versions | No fix listed |
| redhat ansible automation platform | All versions | No fix listed |
| redhat ansible automation platform | = 2 | No fix listed |
Show 66 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat discovery | = 2 | No fix listed |
| redhat enterprise linux | = 10 | No fix listed |
| redhat enterprise linux | = 8 | No fix listed |
| redhat enterprise linux | All versions | No fix listed |
| redhat enterprise linux | = 9 | No fix listed |
| redhat jboss enterprise application platform | All versions | No fix listed |
| redhat jboss enterprise application platform | = 8 | No fix listed |
| redhat jbosseapxp | All versions | No fix listed |
| redhat openshift ai | All versions | No fix listed |
| redhat openshift | = 4 | No fix listed |
| npm js-cookie(npm) | <= 3.0.5 | No fix listed |
| redhat/cryostat/cryostat-grafana-dashboard-rhel9:4.2.0-13(Red Hat:cryostat:4::el9) | All versions | No fix listed |
| redhat/advanced-cluster-security/rhacs-main-rhel8:1783357140(Red Hat:advanced_cluster_security:4.10::el8) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-portal:1787047114(Red Hat:ansible_portal:2.1) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-portal:1787047188(Red Hat:ansible_portal:2.2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/gateway-rhel9:1787218409(Red Hat:ansible_automation_platform:2.7::el9) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-lightspeed:1785333413(Red Hat:rhdh:1.10::el9) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator:1785340831(Red Hat:rhdh:1.10::el9) | All versions | No fix listed |
| redhat/rhdh/red-hat-developer-hub-backstage-plugin-orchestrator-form-widgets:1785332928(Red Hat:rhdh:1.10::el9) | All versions | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9:1785411652(Red Hat:rhdh:1.10::el9) | All versions | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9:1785972843(Red Hat:rhdh:1.9::el9) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-rhel9:1787347991(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-automl-rhel9:1787250508(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-autorag-rhel9:1787251550(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-gen-ai-rhel9:1786611759(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-maas-rhel9:1787251250(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-mlflow-rhel9:1786612219(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-model-registry-rhel9:1787250617(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/rhoai/odh-mod-arch-eval-hub-rhel9:1791861214(Red Hat:openshift_ai:3.4::el9) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-ossmc-rhel9:1782231869(Red Hat:service_mesh:3.3::el9) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-rhel9:1782201466(Red Hat:service_mesh:3.3::el9) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-console-plugin-419-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-console-plugin-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/3scale-amp2/system-rhel9(Red Hat:3scale:2.13) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-gateway(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-hub(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-platform-ui(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python3.11-galaxy-ng(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python3x-galaxy-ng(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python-galaxy-ng(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/js-cookie(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/openshift5/ose-agent-installer-ui-rhel9(Red Hat:openshift:5) | All versions | No fix listed |
| debian/node-js-cookie(Debian:12) | All versions | No fix listed |
| debian/node-js-cookie(Debian:12) | = 3.0.1+~3.0.0-3 | No fix listed |
| debian/node-js-cookie(Debian:12) | = 3.0.7+~3.0.6-1 | No fix listed |
| debian/node-js-cookie(Debian:12) | = 3.0.7+~3.0.6-2 | No fix listed |
| debian/node-js-cookie(Debian:12) | = 3.0.8+~3.0.6-1 | No fix listed |
| debian/node-js-cookie(Debian:13) | All versions | No fix listed |
| debian/node-js-cookie(Debian:13) | = 3.0.1+~3.0.0-3 | No fix listed |
| debian/node-js-cookie(Debian:13) | = 3.0.7+~3.0.6-1 | No fix listed |
| debian/node-js-cookie(Debian:13) | = 3.0.7+~3.0.6-2 | No fix listed |
| debian/node-js-cookie(Debian:13) | = 3.0.8+~3.0.6-1 | No fix listed |
| debian/node-js-cookie(Debian:14) | < 3.0.7+~3.0.6-1 | 3.0.7+~3.0.6-1 |
| debian/node-js-cookie(Debian:14) | = 3.0.1+~3.0.0-3 | No fix listed |
| ubuntu/node-js-cookie(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-js-cookie(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-js-cookie(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-js-cookie(Ubuntu:26.10) | All versions | No fix listed |
| js-cookie javascript cookie | < 3.0.7 | 3.0.7 |
| redhat 3scale api management | = 2.0 | No fix listed |
| redhat ansible automation platform | = 2.0 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| redhat enterprise linux | = 9.0 | No fix listed |
| redhat enterprise linux | = 10.0 | No fix listed |
| npm js-cookie(npm) | < 3.0.7 | 3.0.7 |
References
- https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j exploit vendor-advisory
- https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020 patch
- https://github.com/js-cookie/js-cookie/releases/tag/v3.0.7 release-notes
- Red Hat CVE page mitigation third-party-advisory vdb-entry vendor-advisory
- RHBZ#2487740 issue-tracking third-party-advisory
- security.access.redhat.com third-party-advisory
- RHSA-2026:48151 patch third-party-advisory vendor-advisory
- RHSA-2026:36625 patch third-party-advisory vendor-advisory
- RHSA-2026:56338 patch third-party-advisory vendor-advisory
- RHSA-2026:56357 patch third-party-advisory vendor-advisory
- RHSA-2026:59153 patch third-party-advisory vendor-advisory
- RHSA-2026:48126 patch third-party-advisory vendor-advisory
- RHSA-2026:49642 patch third-party-advisory vendor-advisory
- RHSA-2026:52768 patch third-party-advisory vendor-advisory
- RHSA-2026:60520 patch vendor-advisory
- RHSA-2026:33183 patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- RHSA-2026:84734 patch vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2026-46625 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- github.com product
- ENISA EUVD EUVD-2026-36154 third-party-advisory