Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-46625

Type: advisorySource: OSV1 source record

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.

Announced Group revision 1
Original source ↗

DEBIAN-CVE-2026-46625

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-46625

node-js-cookie

Source reference: /affected/0/package/name

Affected versions
3.0.1+~3.0.0-3

Source reference: /affected/0/versions

3.0.7+~3.0.6-1

Source reference: /affected/0/versions

3.0.7+~3.0.6-2

Source reference: /affected/0/versions

3.0.8+~3.0.6-1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

node-js-cookie

Source reference: /affected/1/package/name

Affected versions
3.0.1+~3.0.0-3

Source reference: /affected/1/versions

3.0.7+~3.0.6-1

Source reference: /affected/1/versions

3.0.7+~3.0.6-2

Source reference: /affected/1/versions

3.0.8+~3.0.6-1

Source reference: /affected/1/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

node-js-cookie

Source reference: /affected/2/package/name

Affected versions
3.0.1+~3.0.0-3

Source reference: /affected/2/versions

Fixed versions
3.0.7+~3.0.6-1

Source reference: /affected/2/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "node-js-cookie",
      "purl": "pkg:deb/debian/node-js-cookie?arch=source&distro=bookworm",
      "ecosystem": "Debian:12"
    },
    "versions": [
      "3.0.1+~3.0.0-3",
      "3.0.7+~3.0.6-1",
      "3.0.7+~3.0.6-2",
      "3.0.8+~3.0.6-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-46625.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "node-js-cookie",
      "purl": "pkg:deb/debian/node-js-cookie?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "3.0.1+~3.0.0-3",
      "3.0.7+~3.0.6-1",
      "3.0.7+~3.0.6-2",
      "3.0.8+~3.0.6-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-46625.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "3.0.7+~3.0.6-1"
          }
        ]
      }
    ],
    "package": {
      "name": "node-js-cookie",
      "purl": "pkg:deb/debian/node-js-cookie?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "3.0.1+~3.0.0-3"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-46625.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#55898 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement