Approved changes feed: RSS · Atom

cpe:2.3:a:js-cookie:js-cookie:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorJs Cookie (4855bd86-7fc8-5818-8d83-ca0bd0a0966d)
ProductJs Cookie (05b4719b-e798-5b2e-ad7c-ecc29e3a5c87)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*
NotesImported from gcve-enriched-dumps CVE data

PURL mappings

PURLSourceLast updated
pkg:composer/js-cookie/js-cookie purl2cpe 2026-09-09 08:33:47.365123
pkg:github/js-cookie/js-cookie purl2cpe 2026-09-09 08:33:47.365126

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-46625 vulnerable 2026-07-29 00:54:59.088496 JavaScript Cookie: Per-instance prototype hijack in assign() enables cookie-attribute injection
HIGH (7.5)
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.
Published: 2026-06-10T21:18:05.372Z
Updated: 2026-09-09T12:05:08.819Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.