{"id":"CVE-2024-51757","aliases":["CVE-2024-51757","GHSA-96g7-g7g9-jxw8"],"related":[],"kind":"vulnerability","state":"published","title":"Fixes security vulnerability that allowed for server side code to be executed by a <script> tag","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"happy-dom es una implementación de JavaScript de un navegador web sin su interfaz gráfica de usuario. Las versiones de happy-dom anteriores a la 15.10.2 pueden ejecutar código en el host a través de una etiqueta de script. Esto ejecutaría código en el contexto de usuario de happy-dom. Se recomienda a los usuarios que actualicen a la versión 15.10.2. No existen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2024-11-06T15:27:50.000Z","modified":"2026-06-17T08:06:16.573Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"CRITICAL"}],"cwes":["CWE-79","CWE-94"],"affected":[{"ranges":[{"version":"< 15.10.2","status":"affected"}],"vendor":"capricorn86","product":"happy-dom","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"15.10.1","status":"affected"}],"vendor":"capricorn86","product":"happy-dom","cpe":"cpe:2.3:a:capricorn86:happy-dom:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"15.10.2"}],"ecosystem":"npm","package":"happy-dom","purl":"pkg:npm/happy-dom","source":"ghsa"}],"references":[{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/capricorn86/happy-dom/issues/1585","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/capricorn86/happy-dom/pull/1586","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-51757","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/capricorn86/happy-dom","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-11-06T19:51:49.566Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-51757","url":"https://www.cve.org/CVERecord?id=CVE-2024-51757","licence":"CVE Terms of Use","modified":"2024-11-06T20:05:28.358Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-96g7-g7g9-jxw8","url":"https://github.com/advisories/GHSA-96g7-g7g9-jxw8","licence":"CC-BY-4.0","modified":"2024-11-06T23:39:29.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-51757","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-51757","licence":"Public domain","modified":"2026-06-17T08:06:16.573Z"}],"updatedAt":"2026-11-25T22:58:47.843Z","epss":{"score":0.00772,"percentile":0.56894,"date":"2026-12-01T12:00:22.000Z"}}