JavaScript Cookie Library Vulnerability in js-cookie by js-cookie
CVE-2026-46625

7.5HIGH

Key Information:

Vendor

Js-cookie

Status
Vendor
CVE Published:
10 June 2026

What is CVE-2026-46625?

An issue in the js-cookie library prior to version 3.0.7 allows for prototype hijacking through mishandled JSON parsing. The library's internal assign() helper improperly copies enumerable properties from a crafted source object, allowing attackers to inject keys into the merged attributes object. This results in attacker-controlled cookie attributes, potentially compromising cookie security settings such as domain, secure, and path. This vulnerability has been addressed in version 3.0.7 of the js-cookie library.

Affected Version(s)

js-cookie < 3.0.7

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
High
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.