CVE-2024-51757
JSON

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 packageVersionsReported by
capricorn86 happy-dom< 15.10.2, before 15.10.1CVE List
happy-dom (npm)before 15.10.2GitHub Advisory Database

All scores

GitHub_M9.3critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubcritical CVSS:4.0CVSS: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

CWE-79CWE-94

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

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

#1585

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

SourceRecordLicence
CVE ListCVE-2024-51757 changed 2024-11-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-96g7-g7g9-jxw8 changed 2024-11-06CC-BY-4.0
NVDCVE-2024-51757 changed 2026-06-17Public domain