{
  "id": "CVE-2026-34226",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-34226",
  "published_at": "2026-03-27T21:17:24.777Z",
  "title": "Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies",
  "vendor": "capricorn86",
  "product": "happy-dom",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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": "Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Versions prior to 20.8.9 may attach cookies from the current page origin (`window.location`) instead of the request target URL when `fetch(..., { credentials: \"include\" })` is used. This can leak cookies from origin A to destination B. Version 20.8.9 fixes the issue.",
  "cwe": "CWE-201",
  "cpes": [
    "cpe:2.3:a:capricorn86:happy_dom:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "capricorn86",
        "product": "happy-dom",
        "ranges": [
          "\u003c 20.8.9"
        ],
        "fixed_in": [
          "20.8.9"
        ]
      }
    ],
    "upgrade": [
      "Upgrade happy-dom to 20.8.9 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/capricorn86/happy-dom/security/advisories/GHSA-w4gp-fjgq-3q4g"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/capricorn86/happy-dom/pull/2117"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/capricorn86/happy-dom/commit/68324c21d7b98f53f7bb5a7b3e185bda7106e751"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/capricorn86/happy-dom/releases/tag/v20.8.9"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
