CVE-2024-51757
CRITICAL 9.3CVSS 4.0happy-dom allows for server side code to be executed by a <script> tag
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.
- Published
- 6 Nov 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-96g7-g7g9-jxw8
- Sources
- NVDJSONOSV GHSA-96g7-g7g9-jxw8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | CRITICAL 9.3 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | happy-dom | < 15.10.2 | 15.10.2 |
References
- https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac · WEB
- https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd · 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/releases/tag/v15.10.2 · WEB
- https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-51757 · ADVISORY
- https://github.com/capricorn86/happy-dom · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 6 Nov 2024)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 6 Nov 2024)