{"id":"CVE-2024-51757","state":"PUBLISHED","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.","publishedAt":"2024-11-06T19:18:23.923Z","updatedAt":"2024-11-06T20:05:28.358Z","severity":{"score":9.3,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["capricorn86 happy-dom"],"affected":[{"vendor":"capricorn86","product":"happy-dom","versions":[{"version":"< 15.10.2","status":"affected"}]}],"references":["https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8","https://github.com/capricorn86/happy-dom/issues/1585","https://github.com/capricorn86/happy-dom/pull/1586","https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac","https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd","https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2"],"weaknesses":["CWE-94","CWE-79"],"ingestedAt":"2026-10-29T20:08:04.920Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/51xxx/CVE-2024-51757.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-51757","state":"PUBLISHED","datePublished":"2024-11-06T19:18:23.923Z","dateUpdated":"2024-11-06T20:05:28.358Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-10-31T14:12:45.792Z"},"containers":{"cna":{"title":"Fixes security vulnerability that allowed for server side code to be executed by a <script> tag","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"capricorn86","product":"happy-dom","versions":[{"version":"< 15.10.2","status":"affected"}]}],"references":[{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8","name":"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","name":"https://github.com/capricorn86/happy-dom/issues/1585","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/pull/1586","name":"https://github.com/capricorn86/happy-dom/pull/1586","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac","name":"https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd","name":"https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2","name":"https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":9.3,"baseSeverity":"CRITICAL","vectorString":"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-11-06T20:05:28.358Z"},"source":{"advisory":"GHSA-96g7-g7g9-jxw8","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"capricorn86","product":"happy-dom","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"15.10.1","versionType":"custom"}],"cpes":["cpe:2.3:a:capricorn86:happy-dom:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-11-06T19:51:49.566238Z","id":"CVE-2024-51757","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-06T19:53:00.331Z"}}]}}}