UBUNTU-CVE-2026-46625

Source
https://ubuntu.com/security/CVE-2026-46625
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-46625.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-46625
Upstream
Published
2026-06-10T22:16:00Z
Modified
2026-06-30T18:18:16.846246893Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:18.04:LTS
node-js-cookie

Package

Name
node-js-cookie
Purl
pkg:deb/ubuntu/node-js-cookie?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.2.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "node-js-cookie",
            "binary_version": "2.2.0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-46625.json"
Ubuntu:20.04:LTS
node-js-cookie

Package

Name
node-js-cookie
Purl
pkg:deb/ubuntu/node-js-cookie?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.2.0-2
2.2.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "node-js-cookie",
            "binary_version": "2.2.1-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-46625.json"
Ubuntu:22.04:LTS
node-js-cookie

Package

Name
node-js-cookie
Purl
pkg:deb/ubuntu/node-js-cookie?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.2.1-1
2.2.1-2
3.*
3.0.1+~3.0.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "node-js-cookie",
            "binary_version": "3.0.1+~3.0.0-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-46625.json"
Ubuntu:24.04:LTS
node-js-cookie

Package

Name
node-js-cookie
Purl
pkg:deb/ubuntu/node-js-cookie?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.0.1+~3.0.0-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "node-js-cookie",
            "binary_version": "3.0.1+~3.0.0-3"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-46625.json"
Ubuntu:25.10
node-js-cookie

Package

Name
node-js-cookie
Purl
pkg:deb/ubuntu/node-js-cookie?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.0.1+~3.0.0-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "node-js-cookie",
            "binary_version": "3.0.1+~3.0.0-3"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-46625.json"
Ubuntu:26.04:LTS
node-js-cookie

Package

Name
node-js-cookie
Purl
pkg:deb/ubuntu/node-js-cookie?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.0.1+~3.0.0-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "node-js-cookie",
            "binary_version": "3.0.1+~3.0.0-3"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-46625.json"