{"schemaVersion":4,"id":"CVE-2026-118660","aliases":["GHSA-c8p4-j97h-3vg8"],"status":"published","duplicateOf":null,"title":"Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML","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.","dates":{"published":"2026-10-28T20:23:10.122Z","modified":"2026-10-29T17:23:32.163Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.6,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","exploitability":10,"impact":6.7,"computed":true}]},"epss":{"probability":0.00512,"percentile":0.45163,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.10700000000000007,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00405},"history":[{"date":"2026-10-29T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00512,"percentile":0.45163}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00524,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00512,"percentile":0.45163}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-918","name":"Server-Side Request Forgery","description":"The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/918.html"}],"affected":[{"vendor":"capricorn86","product":"happy-dom","name":"happy-dom","label":"happy-dom","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 21.0.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"21.0.0","endInclusive":false}}],"versionsText":"< 21.0.0","eol":null,"hubHref":"/vendor/capricorn86/happy-dom"},{"vendor":"Npm","product":"happy-dom","name":"happy-dom","label":"happy-dom","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/happy-dom","purlType":"npm","versions":[{"text":"< 21.0.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"21.0.0","endInclusive":false}}],"versionsText":"< 21.0.0","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-c8p4-j97h-3vg8","label":"github.com/capricorn86/happy-dom/security/advisories/GHSA-c8p4-j97h-3vg8","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/capricorn86/happy-dom/pull/2502","label":"github.com/capricorn86/happy-dom/pull/2502","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/capricorn86/happy-dom/commit/0a99c7525a1d0043e3182843ae33466ab7b19e74","label":"github.com/capricorn86/happy-dom/commit/0a99c7525a1d0043e3182843ae33466ab7b19e74","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/capricorn86/happy-dom/releases/tag/v21.0.0","label":"github.com/capricorn86/happy-dom/releases/tag/v21.0.0","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/capricorn86/happy-dom","label":"github.com/capricorn86/happy-dom","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-28T20:23:10.122Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-29T17:23:32.163Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 8.6 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 21.0.0 (CNA); fix release not confirmed","rank":[0,0,0,0,1,86],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00512,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-10-29T17:23:32.163Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-10-29T17:23:32.163Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"osv_npm","date":"2026-10-29T17:23:32.163Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-10-29T15:43:35.972Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00512,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:48:54.591Z","stale":false,"partial":false}}