# CVE-2024-51757: Fixes security vulnerability that allowed for server side code to be executed by a <script> tag

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2024-11-06T15:27:50.000Z
- Modified: 2026-06-17T08:06:16.573Z
- Also known as: GHSA-96g7-g7g9-jxw8
- Weaknesses: CWE-79, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- capricorn86 happy-dom: < 15.10.2; before 15.10.1
- happy-dom (npm): before 15.10.2

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `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`
- GitHub: CVSS:4.0 Critical `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`

## References

- <https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8> (web)
- <https://github.com/capricorn86/happy-dom/issues/1585> (web)
- <https://github.com/capricorn86/happy-dom/pull/1586> (web)
- <https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac> (web)
- <https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd> (web)
- <https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-51757> (advisory)
- <https://github.com/capricorn86/happy-dom> (package)

## Sources

- CVE List: [CVE-2024-51757](https://www.cve.org/CVERecord?id=CVE-2024-51757), CVE Terms of Use, modified 2024-11-06
- GitHub Advisory Database: [GHSA-96g7-g7g9-jxw8](https://github.com/advisories/GHSA-96g7-g7g9-jxw8), CC-BY-4.0, modified 2024-11-06
- NVD: [CVE-2024-51757](https://nvd.nist.gov/vuln/detail/CVE-2024-51757), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-51757 · Whole record: https://cve.day/CVE-2024-51757.json · Rebuilt by cve.day 2026-11-25T22:58:47.843Z
