---
title: "CVE-2024-51757: happy-dom allows for server side code to be executed by a <script> tag"
url: https://erroneo.us/security/cve/CVE-2024-51757/
description: "CVE-2024-51757 (happy-dom (npm)): happy-dom is a JavaScript implementation of a web browser without its graphical user interface. Versions of happy-dom…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-11-06
date_modified: 2024-11-06
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-51757"
kev: false
cvss: 9.3
epss: 0.00772
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-51757: happy-dom allows for server side code to be executed by a <script> tag

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.8% , percentile 55: FIRST’s model estimates a 0.8% chance of exploitation activity in the next 30 days, higher than 55% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes happy-dom (npm) < 15.10.2, fixed in 15.10.2 . Check your lockfile, including transitive dependencies.

## What it is

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

- npm `happy-dom` < 15.10.2 → fixed: 15.10.2

## Affected products (CVE record)

- capricorn86 happy-dom: < 15.10.2

## Severity

- GitHub_M CVSS 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`
- GitHub CVSS 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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.77% probability of exploitation activity in the next 30 days; percentile 55.

## Sources

- [GitHub Advisory GHSA-96g7-g7g9-jxw8](https://github.com/advisories/GHSA-96g7-g7g9-jxw8)
- [CVE.org record CVE-2024-51757](https://www.cve.org/CVERecord?id=CVE-2024-51757)
- [NVD entry CVE-2024-51757](https://nvd.nist.gov/vuln/detail/CVE-2024-51757)
- [github.com](https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8)
- [github.com](https://github.com/capricorn86/happy-dom/issues/1585)
- [github.com](https://github.com/capricorn86/happy-dom/pull/1586)
- [github.com](https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac)
- [github.com](https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd)
- [github.com](https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2)

---
Source page: https://erroneo.us/security/cve/CVE-2024-51757/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
