CVE-2024-51757 json
Fixes security vulnerability that allowed for server side code to be executed by a <script> tag
published 2024-11-06 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-3226 , GHSA-96g7-g7g9-jxw8
- cvss
- 9.3
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 55%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm happy-dom 15.10.2
- capricorn86 happy-dom 15.10.1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-51757 updated cvss 9.8
happy-dom: Code Execution Vulnerability in happy-dom via Script Tag
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.77% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 4.0 | 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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | happy-dom | <15.10.2 |
15.10.2 |
Affected products
- capricorn86 happy-dom
Classification
References
-
github.com
/capricorn86/happy-dom/pull/1586
web
-
github.com
/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac
web
-
github.com
/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd
web
-
github.com
/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8
web
-
github.com
/capricorn86/happy-dom/issues/1585
web
-
github.com
/capricorn86/happy-dom/releases/tag/v15.10.2
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-51757
advisory
-
github.com
/capricorn86/happy-dom
package
Sources
- CVE List CVE-2024-51757
- GitHub Advisory GHSA-96g7-g7g9-jxw8
- NVD CVE-2024-51757
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.