{"id":"CVE-2024-51757","aliases":["CLSA-2026-1782781184","CLSA-2026-1790102017","CLSA-2026-1792254607","CLSA-2026-1792254628","CLSA-2026-1792866906","CLSA-2026-1792866907","CLSA-2026-1792866963","EUVD-2024-3226","GHSA-96g7-g7g9-jxw8"],"status":"published","title":"Fixes security vulnerability that allowed for server side code to be executed by a \u003cscript\u003e 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.","severity":{"version":"4.0","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","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00772,"percentile":0.56175,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79","CWE-94"],"published":"2024-11-06T15:27:50Z","modified":"2026-10-28T02:30:51Z","fixes":[{"ecosystem":"npm","package":"happy-dom","fixed_in":["15.10.2"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:npm","package":"happy-dom","fixed_in":["9.20.3-tuxcare.3"],"sources":["osv"]},{"ecosystem":"TuxCare:npm","package":"@happy-dom/global-registrator","fixed_in":["9.20.3-tuxcare.3"],"sources":["osv"]},{"ecosystem":"TuxCare:npm","package":"@happy-dom/jest-environment","fixed_in":["9.20.3-tuxcare.3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"happy-dom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"15.10.2"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"happy-dom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.10.9-tuxcare.0"},{"fixed":"9.10.9-tuxcare.1"}]}],"versions":["9.10.9"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:npm","package":"happy-dom","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.20.3-tuxcare.0"},{"fixed":"9.20.3-tuxcare.3"}]}],"versions":["9.20.3","9.20.3-tuxcare.1","9.20.3-tuxcare.2"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/global-registrator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.10.9-tuxcare.0"},{"fixed":"9.10.9-tuxcare.1"}]}],"versions":["9.10.9"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/global-registrator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.20.3-tuxcare.0"},{"fixed":"9.20.3-tuxcare.3"}]}],"versions":["9.20.3","9.20.3-tuxcare.1","9.20.3-tuxcare.2"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/jest-environment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.10.9-tuxcare.0"},{"fixed":"9.10.9-tuxcare.1"}]}],"versions":["9.10.9"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/jest-environment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"14.12.3-tuxcare.0"},{"fixed":"14.12.3-tuxcare.2"}]}],"versions":["14.12.3"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:npm","package":"@happy-dom/jest-environment","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.20.3-tuxcare.0"},{"fixed":"9.20.3-tuxcare.3"}]}],"versions":["9.20.3","9.20.3-tuxcare.1","9.20.3-tuxcare.2"]},{"source":"osv","ecosystem":"npm","package":"happy-dom","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"15.10.2"}]}]}],"products":[{"vendor":"capricorn86","product":"happy-dom"}],"references":[{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/capricorn86/happy-dom/issues/1585","tags":["x_refsource_MISC","report","web"]},{"url":"https://github.com/capricorn86/happy-dom/pull/1586","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-51757","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-96g7-g7g9-jxw8"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51757.json","tags":["advisory"]},{"url":"https://github.com/capricorn86/happy-dom","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-51757","title":"Fixes security vulnerability that allowed for server side code to be executed by a \u003cscript\u003e 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.","status":"published","published":"2024-11-06T19:18:23.923Z","modified":"2024-11-06T20:05:28.358Z","cvss":[{"version":"4.0","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","level":"critical","assessor":"cna"}],"cwes":["CWE-94","CWE-79"],"updated_at":"2026-11-02T14:34:01.972857Z"}],"euvd":[{"id":"EUVD-2024-3226","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.","status":"published","published":"2024-11-06T19:18:23Z","modified":"2024-11-06T20:05:28Z","cvss":[{"version":"4.0","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","level":"critical"}],"updated_at":"2026-11-03T00:05:08.721426Z"}],"ghsa":[{"id":"GHSA-96g7-g7g9-jxw8","title":"happy-dom allows for server side code to be executed by a \u003cscript\u003e tag","description":"### Impact\nConsumers of the NPM package `happy-dom`\n\n### Patches\nThe security vulnerability has been patched in v15.10.2\n\n### Workarounds\nNo easy workarounds to my knowledge\n\n### References\n[#1585](https://github.com/capricorn86/happy-dom/issues/1585)\n","status":"published","published":"2024-11-06T15:27:50Z","modified":"2024-11-06T23:39:30Z","cvss":[{"version":"4.0","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","level":"critical"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:38:16.477822Z"}],"nvd":[{"id":"CVE-2024-51757","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.","status":"published","published":"2024-11-06T20:15:06.337Z","modified":"2026-06-17T08:06:16.573Z","cvss":[{"version":"4.0","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","level":"critical","assessor":"secondary"}],"cwes":["CWE-79","CWE-94"],"updated_at":"2026-11-02T14:10:36.560164Z"}],"osv":[{"id":"CVE-2024-51757","title":"Fixes security vulnerability that allowed for server side code to be executed by a \u003cscript\u003e 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.","status":"published","published":"2024-11-06T19:18:23.923Z","modified":"2026-10-28T02:30:51.812430446Z","cvss":[{"version":"4.0","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","level":"critical"}],"cwes":["CWE-79","CWE-94"],"updated_at":"2026-11-02T15:44:44.032344Z"},{"id":"GHSA-96g7-g7g9-jxw8","title":"happy-dom allows for server side code to be executed by a \u003cscript\u003e tag","description":"### Impact\nConsumers of the NPM package `happy-dom`\n\n### Patches\nThe security vulnerability has been patched in v15.10.2\n\n### Workarounds\nNo easy workarounds to my knowledge\n\n### References\n[#1585](https://github.com/capricorn86/happy-dom/issues/1585)\n","status":"published","published":"2024-11-06T15:27:50Z","modified":"2024-11-06T23:39:29Z","cvss":[{"version":"4.0","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","level":"critical"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:43.123867Z"},{"id":"CLSA-2026-1782781184","title":"TuxCare security update for happy-dom (3 CVEs)","description":"TuxCare rebuilt happy-dom to address 3 CVEs. Fixed in 9.10.9-tuxcare.1.","status":"published","published":"2026-08-04T14:52:40Z","modified":"2026-10-25T01:30:06.425211008Z","updated_at":"2026-11-02T15:43:45.794021Z"},{"id":"CLSA-2026-1790102017","title":"TuxCare security update for happy-dom (1 CVE)","description":"TuxCare rebuilt happy-dom to address 1 CVE. Fixed in 9.20.3-tuxcare.3.","status":"published","published":"2026-09-22T18:33:37Z","modified":"2026-10-24T19:15:02.424135011Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"CLSA-2026-1792254607","title":"TuxCare security update for @happy-dom/global-registrator (3 CVEs)","description":"TuxCare rebuilt @happy-dom/global-registrator to address 3 CVEs. Fixed in 9.10.9-tuxcare.1.","status":"published","published":"2026-10-17T16:30:07Z","modified":"2026-10-17T19:01:44.971637686Z","updated_at":"2026-11-02T15:43:52.011757Z"},{"id":"CLSA-2026-1792254628","title":"TuxCare security update for @happy-dom/global-registrator (1 CVE)","description":"TuxCare rebuilt @happy-dom/global-registrator to address 1 CVE. Fixed in 9.20.3-tuxcare.3.","status":"published","published":"2026-10-17T16:30:28Z","modified":"2026-10-17T19:01:45.473355614Z","updated_at":"2026-11-02T15:43:52.011757Z"},{"id":"CLSA-2026-1792866906","title":"TuxCare security update for @happy-dom/jest-environment (3 CVEs)","description":"TuxCare rebuilt @happy-dom/jest-environment to address 3 CVEs. Fixed in 9.10.9-tuxcare.1.","status":"published","published":"2026-10-24T18:35:06Z","modified":"2026-10-25T01:30:06.621870145Z","updated_at":"2026-11-02T15:43:54.981307Z"},{"id":"CLSA-2026-1792866907","title":"TuxCare security update for @happy-dom/jest-environment (3 CVEs)","description":"TuxCare rebuilt @happy-dom/jest-environment to address 3 CVEs. Fixed in 14.12.3-tuxcare.2.","status":"published","published":"2026-10-24T18:35:06Z","modified":"2026-10-25T01:30:06.521896925Z","updated_at":"2026-11-02T15:43:54.981307Z"},{"id":"CLSA-2026-1792866963","title":"TuxCare security update for @happy-dom/jest-environment (1 CVE)","description":"TuxCare rebuilt @happy-dom/jest-environment to address 1 CVE. Fixed in 9.20.3-tuxcare.3.","status":"published","published":"2026-10-24T18:36:03Z","modified":"2026-10-25T01:30:04.324790407Z","updated_at":"2026-11-02T15:43:54.981307Z"}]}}
