CVE-2026-46625
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.
Weakness
- CWE-1321: Improperly Controlled Modification of Object Prototype Attributes
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-06-11 |
Timeline
- 2026-05-21GitHub advisory published (GHSA-qjx8-664m-686j)20 days before publication
- 2026-06-10Published by the CNA21:18 UTC
- 2026-06-11CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-qjx8-664m-686j, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm js-cookie | before 3.0.7 | 3.0.7 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| js-cookie javascript_cookie | before 3.0.7fixed in 3.0.7 | 3.0.7 |
| redhat 3scale_api_management | 2.0no fix listed | not listed |
| redhat ansible_automation_platform | 2.0no fix listed | not listed |
| redhat enterprise_linux | 10.0no fix listed8.0no fix listed9.0no fix listed | not listednot listednot listed |
| redhat openshift_ai | ||
| redhat openshift_lightspeed |
References
- https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020
- 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://github.com/js-cookie/js-cookie/releases/tag/v3.0.7
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46625.json
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-46625'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-46625'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-46625'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-46625'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).