{"id":"CVE-2024-51757","published":"2024-11-06T19:18:23Z","modified":"2024-11-06T20:05:28Z","title":"Fixes security vulnerability that allowed for server side code to be executed by a <script> tag","vendor":"capricorn86","product":"happy-dom","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0133,"percentile":0.71151,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/capricorn86/happy-dom/issues/1585","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/pull/1586","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2","tags":["x_refsource_MISC"]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":14.23},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"capricorn86","affectedVersions":[{"vendor":"capricorn86","product":"happy-dom","versions":["< 15.10.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-11-06T19:51:49.566238Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"happy-dom","vulnerableRanges":["<15.10.2"],"patched":["15.10.2"],"from":["GHSA-96g7-g7g9-jxw8"],"provenance":"source"}],"summary":{"text":"A flaw in happy-dom, a JavaScript implementation of a headless web browser from capricorn86, allows server-side code to be executed through a script tag in versions prior to 15.10.2. An attacker who can get markup containing a script tag processed by happy-dom can run code in the user context of the host application, with no authentication, no user interaction, and no special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:58Z"},"euvd":{"id":"EUVD-2024-3226","exploited":false,"provenance":"source"}}