{
  "id": "CVE-2026-46625",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-46625",
  "published_at": "2026-06-10T21:18:05.372Z",
  "title": "JavaScript Cookie: Per-instance prototype hijack in assign() enables cookie-attribute injection",
  "vendor": "js-cookie",
  "product": "js-cookie",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-1321",
  "cpes": [
    "cpe:2.3:a:js-cookie:javascript_cookie:*:*:*:*:*:node.js:*:*",
    "cpe:2.3:a:redhat:3scale_api_management:2.0:*:*:*:*:*:*:*",
    "cpe:2.3:a:redhat:ansible_automation_platform:2.0:*:*:*:*:*:*:*",
    "cpe:2.3:a:redhat:openshift_ai:-:*:*:*:*:*:*:*",
    "cpe:2.3:a:redhat:openshift_lightspeed:-:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "js-cookie",
        "product": "js-cookie",
        "ranges": [
          "\u003c 3.0.7"
        ],
        "fixed_in": [
          "3.0.7"
        ]
      }
    ],
    "upgrade": [
      "Upgrade js-cookie to 3.0.7 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/js-cookie/js-cookie/security/advisories/GHSA-qjx8-664m-686j"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/js-cookie/js-cookie/commit/eb3c40e89731e99b8970faaf35ddad249c6c0020"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/js-cookie/js-cookie/releases/tag/v3.0.7"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
