9.3critical
Fixes security vulnerability that allowed for server side code to be executed by a <script> tag
- Severity
- 9.3critical CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-96g7-g7g9-jxw8
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| capricorn86 happy-dom | < 15.10.2, before 15.10.1 | CVE List |
| happy-dom (npm) | before 15.10.2 | GitHub Advisory Database |
All scores
| GitHub_M | 9.3critical 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 |
| GitHub | critical 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 |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
Consumers of the NPM package happy-dom
Patches
The security vulnerability has been patched in v15.10.2
Workarounds
No easy workarounds to my knowledge
References
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-51757 changed 2024-11-06 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-96g7-g7g9-jxw8 changed 2024-11-06 | CC-BY-4.0 |
| NVD | CVE-2024-51757 changed 2026-06-17 | Public domain |