{"id":"CVE-2026-118660","published":"2026-10-28T20:23:10Z","modified":"2026-10-29T17:23:32Z","title":"Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML","vendor":"capricorn86","product":"happy-dom","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00512,"percentile":0.44491,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-c8p4-j97h-3vg8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/capricorn86/happy-dom/pull/2502","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/commit/0a99c7525a1d0043e3182843ae33466ab7b19e74","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/releases/tag/v21.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":8.9},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"capricorn86","affectedVersions":[{"vendor":"capricorn86","product":"happy-dom","versions":["< 21.0.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-29T15:43:35.972529Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"happy-dom","vulnerableRanges":["<21.0.0"],"patched":["21.0.0"],"from":["GHSA-c8p4-j97h-3vg8"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-112467","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-capricorn86-happy-dom-cve-2025-61927","parents":[{"from":"CVE-2025-61927","to":"CVE-2026-118660","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/@happy-dom/server-renderer/src/utilities/HelpPrinterRows.ts","packages/@happy-dom/server-renderer/src/utilities/ProcessArgumentsParser.ts","packages/happy-dom/src/browser/DefaultBrowserSettings.ts","packages/happy-dom/src/browser/types/IBrowserSettings.ts","packages/happy-dom/src/browser/types/IOptionalBrowserSettings.ts"],"commits":["https://github.com/capricorn86/happy-dom/commit/819d15ba289495439eda8be360d92a614ce22405","https://github.com/capricorn86/happy-dom/commit/de438ad72921c69793584aa657b48d3655dfac97","https://github.com/capricorn86/happy-dom/commit/0a99c7525a1d0043e3182843ae33466ab7b19e74"],"basis":"shared function","functions":["HTMLLinkElement","IBrowserSettings","IOptionalBrowserSettings","ProcessArgumentsParser"]}]}],"packageHistory":[{"cve":"CVE-2026-33943","published":"2026-03-27","fixed":"20.8.8","kev":false},{"cve":"CVE-2026-34226","published":"2026-03-27","fixed":"20.8.9","kev":false},{"cve":"CVE-2026-118661","published":"2026-10-28","fixed":"20.14.6","kev":false},{"cve":"CVE-2026-118660","published":"2026-10-28","fixed":"21.0.0","kev":false},{"cve":"CVE-2026-115895","published":"2026-10-23","fixed":"21.0.4","kev":false,"link":{"from":"CVE-2026-118660","to":"CVE-2026-115895","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:happy-dom","fromFixed":"21.0.0","toFixed":"21.0.4","daysApart":-5}]}}],"package":"npm:happy-dom"}}