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

[CVE catalog]

Severity
High · CVSS 7.5CVSS: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.

DistributionPackageReleaseVersionStatus
Debiannode-js-cookiesid3.0.8+~3.0.6-1fixed
Debiannode-js-cookieforky3.0.8+~3.0.6-1fixed
Debiannode-js-cookietrixie3.0.1+~3.0.0-3vulnerable
Debiannode-js-cookiebookworm3.0.1+~3.0.0-3vulnerable
Cpenode-js-cookieNot reportedNot reportedvulnerable
Cpejavascript_cookieNot reported3.0.7fixed
Cpe3scale_api_managementNot reportedNot reportedunknown
Cpeansible_automation_platformNot reportedNot reportedunknown
Cpeopenshift_aiNot reportedNot reportedunknown
Cpeopenshift_lightspeedNot reportedNot reportedunknown
Cpeenterprise_linuxNot reportedNot reportedunknown

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-js-cookiesourcesid3.0.7+~3.0.6-1not yet assignedNot reportedNot reported
Debiannode-js-cookiesourceforky3.0.7+~3.0.6-1not yet assignedNot reportedNot reported
Debiannode-js-cookiesourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiannode-js-cookiesourcebookworm(unfixed)not yet assignedNot reportedNot reported
Cpejavascript_cookiecpeNot reported3.0.7Not reportedNVD-CVE-2026-46625Not 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 · bookworm

      Affected

      nvd · node-js-cookie · debian · bookworm; nvd · node-js-cookie · debian · 12

    • 3.0.1+~3.0.0-3 · all · bookworm

      Affected

      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 · trixie

      Affected

      nvd · node-js-cookie · debian · 13

    • 3.0.1+~3.0.0-3 · all · trixie

      Affected

      nvd · node-js-cookie · debian · 13

Observed:

References