
CVE catalog
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 sourc
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.92% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-js-cookie | sid | 3.0.8+~3.0.6-1 | fixed |
| Debian | node-js-cookie | forky | 3.0.8+~3.0.6-1 | fixed |
| Debian | node-js-cookie | trixie | 3.0.1+~3.0.0-3 | vulnerable |
| Debian | node-js-cookie | bookworm | 3.0.1+~3.0.0-3 | vulnerable |
| Cpe | node-js-cookie | Not reported | Not reported | vulnerable |
| Cpe | javascript_cookie | Not reported | 3.0.7 | fixed |
| Cpe | 3scale_api_management | Not reported | Not reported | unknown |
| Cpe | ansible_automation_platform | Not reported | Not reported | unknown |
| Cpe | openshift_ai | Not reported | Not reported | unknown |
| Cpe | openshift_lightspeed | Not reported | Not reported | unknown |
| Cpe | enterprise_linux | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-js-cookie | source | sid | 3.0.7+~3.0.6-1 | not yet assigned | Not reported | Not reported |
| Debian | node-js-cookie | source | forky | 3.0.7+~3.0.6-1 | not yet assigned | Not reported | Not reported |
| Debian | node-js-cookie | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | node-js-cookie | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Cpe | javascript_cookie | cpe | Not reported | 3.0.7 | Not reported | NVD-CVE-2026-46625 | Not reported |
Notes
[trixie] node-js-cookie: Minor issue [bookworm] node-js-cookie: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-js-cookie]Affected
Details (2)
3.0.1+~3.0.0-3· all · bookwormAffected
nvd · node-js-cookie · debian · bookworm; nvd · node-js-cookie · debian · 12
3.0.1+~3.0.0-3· all · bookwormAffected
nvd · node-js-cookie · debian · bookworm; nvd · node-js-cookie · debian · 12
[Debian 13 (Trixie)]
- [node-js-cookie]Affected
Details (2)
3.0.1+~3.0.0-3· all · trixieAffected
nvd · node-js-cookie · debian · 13
3.0.1+~3.0.0-3· all · trixieAffected
nvd · node-js-cookie · debian · 13
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2026-46625]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-46625]
- [https://security-tracker.debian.org/tracker/CVE-2026-46625]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46625.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2299.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]