{"schemaVersion":4,"id":"CVE-2024-51757","aliases":["GHSA-96g7-g7g9-jxw8"],"status":"published","duplicateOf":null,"title":"Fixes security vulnerability that allowed for server side code to be executed by a <script> tag","description":"happy-dom is a JavaScript implementation of a web browser without its graphical user interface. Versions of happy-dom prior to 15.10.2 may execute code on the host via a script tag. This would execute code in the user context of happy-dom. Users are advised to upgrade to version 15.10.2. There are no known workarounds for this vulnerability.","dates":{"published":"2024-11-06T19:18:23.923Z","modified":"2024-11-06T20:05:28.358Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"critical","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":9.3,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00772,"percentile":0.57051,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00772},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00772,"percentile":0.57051}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0133,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00772,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00772,"percentile":0.57051}]},"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-79","name":"Improper Neutralization of Input During Web Page Generation","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-94","name":"Improper Control of Generation of Code","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"capricorn86","product":"happy-dom","name":"happy-dom","label":"happy-dom","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 15.10.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"15.10.2","endInclusive":false}}],"versionsText":"< 15.10.2","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":"< 15.10.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"15.10.2","endInclusive":false}}],"versionsText":"< 15.10.2","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8","label":"github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/capricorn86/happy-dom/issues/1585","label":"github.com/capricorn86/happy-dom/issues/1585","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/capricorn86/happy-dom/pull/1586","label":"github.com/capricorn86/happy-dom/pull/1586","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac","label":"github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd","label":"github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2","label":"github.com/capricorn86/happy-dom/releases/tag/v15.10.2","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-51757","label":"nvd.nist.gov/vuln/detail/CVE-2024-51757","hostname":"nvd.nist.gov","tags":["Advisory"]},{"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":"2024-11-06T19:18:23.923Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-11-06T20:05:28.358Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 9.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 15.10.2 (CNA); fix release not confirmed","rank":[0,0,0,0,1,93],"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.00772,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2024-11-06T20:05:28.358Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0","headline":true},{"type":"cvss","source":"osv_npm","date":"2024-11-06T20:05:28.358Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},{"type":"cvss","source":"nvd","date":"2024-11-06T20:05:28.358Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":9.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2024-11-06T19:51:49.566Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00772,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T12:01:28.220Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T12:01:28.725Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T12:01:03.802Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T12:01:26.562Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T12:01:25.560Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T12:34:08.204Z","stale":false,"partial":false}}