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.

Severity
HIGH
CVSS v3
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N · source cna
Exploit chance (EPSS)
0.919%
chance of exploitation in the next 30 days
higher than 60.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableyes
Technical impactpartial
Scored2026-06-11

Timeline

  1. 2026-05-21GitHub advisory published (GHSA-qjx8-664m-686j)20 days before publication
  2. 2026-06-10Published by the CNA21:18 UTC
  3. 2026-06-11CISA SSVC decision recorded1 day after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-qjx8-664m-686j, affected packages:

PackageVulnerable versionsFixed in
npm js-cookiebefore 3.0.73.0.7

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
js-cookie javascript_cookiebefore 3.0.7fixed in 3.0.73.0.7
redhat 3scale_api_management2.0no fix listednot listed
redhat ansible_automation_platform2.0no fix listednot listed
redhat enterprise_linux10.0no fix listed8.0no fix listed9.0no fix listednot listednot listednot listed
redhat openshift_ai
redhat openshift_lightspeed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources