CVE-2026-46625: js-cookie - Prototype Pollution
- Cve: CVE-2026-46625
- Name: js-cookie - Prototype Pollution
- 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.
- Impact: Attackers can manipulate cookie attributes like domain, secure, samesite, potentially bypassing security controls and affecting cookie behavior.
- Remediation: Upgrade to version 3.0.7 or later.
- Vulnerability type: prototype_pollution
- Vulnerability impact: data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.00919
- Epss percentile: 0.61172
- Assignee: [email protected]
- Published at: 2026-06-10T22:16:59Z
- Age in days: 166
- Modified at: 2026-09-09T13:20:18Z
- Patch available: yes
- Public exploits total: 1
- References total: 16
- Products total: 6
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-46625
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes |
| CWE-915 | Improperly Controlled Modification of Dynamically-Determined Object Attributes |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j | nvd | 2026-06-10 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020 | Patch |
| https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j | Exploit, Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2026:33183 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:36625 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:48126 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:48151 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:49642 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:52768 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:56338 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2026:56357 | Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| js-cookie/js-cookie | commit, fix, package, releases, security_advisory | yes | /v1/repositories/js-cookie/js-cookie |
Index
- Repositories: 817
- Repositories high signal: 488
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-06-10
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts