Vulnerability · Published Nov 6, 2024 · Assigned by GitHub_M

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

Critical 9.3

In plain English

A critical-severity code injection in happy-dom from capricorn86. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)9.3Critical
Exploit odds (30 days)0.8%top 44.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npmhappy-dom15.10.2GHSA-96g7-g7g9-jxw8

Affected products (as reported)

VendorProductVersions
capricorn86 happy-dom < 15.10.2

Weakness: CWE-94, CWE-79 · 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

References