DEBIAN-CVE-2026-46625

Source
https://security-tracker.debian.org/tracker/CVE-2026-46625
Import Source
https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-46625.json
JSON Data
https://api.osv.dev/v1/vulns/DEBIAN-CVE-2026-46625
Upstream
Published
2026-06-10T22:16:59Z
Modified
2026-09-10T08:47:28Z
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
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

Debian:12 / node-js-cookie

Package

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

Affected ranges

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

Affected versions

3.*
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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-46625.json"

Debian:13 / node-js-cookie

Package

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

Affected ranges

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

Affected versions

3.*
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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-46625.json"

Debian:14 / node-js-cookie

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.0.7+~3.0.6-1

Affected versions

3.*
3.0.1+~3.0.0-3

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-46625.json"