PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-46625 js-cookie CVE debrief

CVE-2026-46625 is a vulnerability in the JavaScript Cookie API, specifically in the js-cookie library prior to version 3.0.7. The vulnerability allows an attacker to hijack the prototype of objects, potentially leading to security issues. The issue has been patched in version 3.0.7. Defenders should assess exposure and prioritize upgrading to the patched version. The vulnerability is triggered when the source object is produced by JSON.parse, which can lead to a per-instance prototype hijack. The internal assign() helper in js-cookie copies properties with for...in + plain assignment.

Vendor
js-cookie
Product
Unknown
CVSS
HIGH 7.5
CISA KEV
Not listed in stored evidence
Original CVE published
2026-06-10
Original CVE updated
2026-09-09
Advisory published
2026-06-10
Advisory updated
2026-09-09

Who should care

Defenders responsible for systems using the js-cookie library prior to version 3.0.7 should assess exposure and prioritize upgrading to the patched version. This includes reviewing and updating affected systems, monitoring for potential security issues, and verifying the integrity of cookie attributes.

Why it matters

CVE-2026-46625 is a vulnerability in the JavaScript Cookie API, specifically in the js-cookie library prior to version 3.0.7, allowing for prototype hijacking. Defenders should prioritize upgrading to version 3.0.7 or later to mitigate this vulnerability.

  • Potential security issues due to prototype hijacking
  • Need to upgrade to version 3.0.7 or later to mitigate vulnerability
  • Possible security risks if affected systems are not updated

Technical summary

The vulnerability is caused by the internal assign() helper in js-cookie copying properties with for...in + plain assignment, which can lead to a per-instance prototype hijack. The issue is triggered when the source object is produced by JSON.parse. This allows an attacker to set domain=, secure=, samesite=, expires=, and path= on cookies whose attributes the developer thought were locked down. The vulnerability has been patched in version 3.0.7, and defenders should prioritize upgrading to this version or later to mitigate this vulnerability.

Defensive priority

Defenders should prioritize upgrading to version 3.0.7 or later to mitigate this vulnerability.

Recommended defensive actions

  • Upgrade to version 3.0.7 or later
  • Review and update affected systems
  • Monitor for potential security issues
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review

Evidence notes

The vulnerability is caused by the internal assign() helper in js-cookie copying properties with for...in + plain assignment, which can lead to a per-instance prototype hijack. The issue is triggered when the source object is produced by JSON.parse. Defenders should verify affected systems and review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-46625 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-46625

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-46625 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-46625

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Source reference

    Unverified legacy reference

    URL: https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020

    [email protected] - Patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/js-cookie/js-cookie/releases/tag/v3.0.7

    [email protected] - Release Notes

  • Source reference

    Unverified legacy reference

    URL: https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j

    [email protected] - Exploit, Vendor Advisory

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:33183

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c - Third Party Advisory

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:36625

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c - Third Party Advisory

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:48126

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c - Third Party Advisory

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:48151

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c - Third Party Advisory

  • Source reference

    Unverified legacy reference

    URL: https://access.redhat.com/errata/RHSA-2026:49642

    0b0ca135-0b70-47e7-9f44-1890c2a1c46c - Third Party Advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.