{"answers":{"affected":"2 open source packages ship an affected version, including happy-dom. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34226 exists.","fix":"Upgrade happy-dom to 20.8.9 or later.","what":"CVE-2026-34226 is a high-severity vulnerability in capricorn86 happy-dom, published on 27 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-34226 and fix it if it is affected.\n\nWhat it is: CVE-2026-34226 is a high-severity vulnerability in capricorn86 happy-dom, published on 27 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34226 exists.\n\nAffected packages and fixed versions:\n- happy-dom (npm): affected all versions; fixed in 20.8.9\n- happy-dom (npm): affected all versions; fixed in 20.8.9\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-34226/ (Markdown: https://insights.sbomify.com/CVE-2026-34226/index.md)","id":"CVE-2026-34226","markdown":"https://insights.sbomify.com/CVE-2026-34226/index.md","name":"CVE-2026-34226","record":{"aliases":["CLSA-2026-1790598377","CLSA-2026-1792191308","CLSA-2026-1792254633","CLSA-2026-1792254634","CLSA-2026-1792866974","CLSA-2026-1792866976","GHSA-w4gp-fjgq-3q4g"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Happy DOM library","requires_auth":"none","summary":"Happy DOM leaks cookies from the current page origin to the target URL during fetch requests, exposing sensitive session data.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"happy_dom","vendor":"capricorn86"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-359","name":"Exposure of Private Personal Information to an Unauthorized Actor"},{"id":"CWE-201","name":"Insertion of Sensitive Information Into Sent Data"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies","id":"CVE-2026-34226","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":2,"n_references":5,"next":{"headline":"Sliver One-Click Remote Access: Insecure CORS \u0026 Unauthenticated MCP Interface","id":"CVE-2026-34227"},"packages":[{"ecosystem":"npm","fixed":["20.8.9"],"introduced":["0"],"last_affected":[],"package":"happy-dom","purl":null,"source":"GHSA-w4gp-fjgq-3q4g"},{"ecosystem":"npm","fixed":["20.8.9"],"introduced":["0"],"last_affected":[],"package":"happy-dom","purl":"pkg:npm/happy-dom","source":"GHSA-w4gp-fjgq-3q4g"}],"prev":{"headline":"Open WebUI has Blind Server Side Request Forgery in its Image Edit Functionality","id":"CVE-2026-34225"},"products":["happy-dom"],"published":"2026-03-27","related":[{"cvss_score":8.8,"headline":"Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code","id":"CVE-2026-33943","kev_date_added":null,"published":"2026-03-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["capricorn86"]},"summary":"Happy DOM leaks cookies from the current page origin to the target URL during fetch requests, exposing sensitive session data.","url":"https://insights.sbomify.com/CVE-2026-34226/"}