{"answers":{"affected":"2 open source packages ship an affected version, including happy-dom.","exploited":"There is no known exploitation of CVE-2026-118660 in the wild and no public exploit code.","fix":"Upgrade happy-dom to 21.0.0 or later.","what":"CVE-2026-118660 is a high-severity vulnerability in capricorn86 happy-dom, published on 28 Oct 2026."},"fix_prompt":"Check this codebase for CVE-2026-118660 and fix it if it is affected.\n\nWhat it is: CVE-2026-118660 is a high-severity vulnerability in capricorn86 happy-dom, published on 28 Oct 2026. \nExploitation: There is no known exploitation of CVE-2026-118660 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- happy-dom (npm): affected all versions; fixed in 21.0.0\n- happy-dom (npm): affected all versions; fixed in 21.0.0\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-118660/ (Markdown: https://insights.sbomify.com/CVE-2026-118660/index.md)","id":"CVE-2026-118660","markdown":"https://insights.sbomify.com/CVE-2026-118660/index.md","name":"CVE-2026-118660","record":{"aliases":["GHSA-c8p4-j97h-3vg8"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Prior to 21.0.0, Happy DOM loads iframe src URLs and link rel=\"stylesheet\" href URLs by default while parsing untrusted HTML on the server because disableIframePageLoading and disableCSSFileLoading default to false. An attacker who controls parsed HTML can therefore cause server-side requests to arbitrary internal or cloud endpoints without an application opt-in and may expose confidential responses or credentials returned by those endpoints. This issue is fixed in version 21.0.0.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML","id":"CVE-2026-118660","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Happy DOM: Cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookies","id":"CVE-2026-118661"},"packages":[{"ecosystem":"npm","fixed":["21.0.0"],"introduced":["0"],"last_affected":[],"package":"happy-dom","purl":null,"source":"GHSA-c8p4-j97h-3vg8"},{"ecosystem":"npm","fixed":["21.0.0"],"introduced":["0"],"last_affected":[],"package":"happy-dom","purl":"pkg:npm/happy-dom","source":"GHSA-c8p4-j97h-3vg8"}],"prev":{"headline":"@happy-dom/server-renderer: ServerRendererServer Target-Origin Bypass SSRF / Open Proxy","id":"CVE-2026-118659"},"products":["happy-dom"],"published":"2026-10-28","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-29","vendors":["capricorn86"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-118660/"}