JavaScript Cookie Library Vulnerability in js-cookie by js-cookie
CVE-2026-46625
7.5HIGH
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
