Every CVE Search/ Get API key

CVE-2024-51757

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

9.3 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.77%Up 0.7 points since Nov 7, 2024
90%50%10%1%

What each source reports

CVE List Score used 9.3

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

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.

Record
CVE-2024-51757
CVSS 4.0
9.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-94, CWE-79
Updated
2026-11-02
EUVDEUVD-2024-3226 9.3

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.

Record
EUVD-2024-3226
CVSS 4.0
9.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-96g7-g7g9-jxw8 9.3

happy-dom allows for server side code to be executed by a <script> tag

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

Record
GHSA-96g7-g7g9-jxw8
CVSS 4.0
9.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-79
Updated
2026-11-02
NVD 9.3

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.

Record
CVE-2024-51757
CVSS 4.0
9.3 CriticalCVSS: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
Weakness
CWE-79, CWE-94
Updated
2026-11-02
OSV 9.3

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

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.

Record
CVE-2024-51757
CVSS 4.0
9.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-79, CWE-94
Updated
2026-11-02
OSVGHSA-96g7-g7g9-jxw8 9.3

happy-dom allows for server side code to be executed by a <script> tag

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

Record
GHSA-96g7-g7g9-jxw8
CVSS 4.0
9.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-79
Updated
2026-11-02
Show 7 moreShow less
OSVCLSA-2026-1782781184 No score

TuxCare security update for happy-dom (3 CVEs)

TuxCare rebuilt happy-dom to address 3 CVEs. Fixed in 9.10.9-tuxcare.1.

Record
CLSA-2026-1782781184
Updated
2026-11-02
OSVCLSA-2026-1790102017 No score

TuxCare security update for happy-dom (1 CVE)

TuxCare rebuilt happy-dom to address 1 CVE. Fixed in 9.20.3-tuxcare.3.

Record
CLSA-2026-1790102017
Updated
2026-11-02
OSVCLSA-2026-1792254607 No score

TuxCare security update for @happy-dom/global-registrator (3 CVEs)

TuxCare rebuilt @happy-dom/global-registrator to address 3 CVEs. Fixed in 9.10.9-tuxcare.1.

Record
CLSA-2026-1792254607
Updated
2026-11-02
OSVCLSA-2026-1792254628 No score

TuxCare security update for @happy-dom/global-registrator (1 CVE)

TuxCare rebuilt @happy-dom/global-registrator to address 1 CVE. Fixed in 9.20.3-tuxcare.3.

Record
CLSA-2026-1792254628
Updated
2026-11-02
OSVCLSA-2026-1792866906 No score

TuxCare security update for @happy-dom/jest-environment (3 CVEs)

TuxCare rebuilt @happy-dom/jest-environment to address 3 CVEs. Fixed in 9.10.9-tuxcare.1.

Record
CLSA-2026-1792866906
Updated
2026-11-02
OSVCLSA-2026-1792866907 No score

TuxCare security update for @happy-dom/jest-environment (3 CVEs)

TuxCare rebuilt @happy-dom/jest-environment to address 3 CVEs. Fixed in 14.12.3-tuxcare.2.

Record
CLSA-2026-1792866907
Updated
2026-11-02
OSVCLSA-2026-1792866963 No score

TuxCare security update for @happy-dom/jest-environment (1 CVE)

TuxCare rebuilt @happy-dom/jest-environment to address 1 CVE. Fixed in 9.20.3-tuxcare.3.

Record
CLSA-2026-1792866963
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
happy-dom
npm
before 15.10.2
15.10.2
happy-dom
TuxCare:npm
From an advisory covering 3 CVEs
9.10.9-tuxcare.0 up to 9.10.9-tuxcare.1, plus listed versions
9.10.9
9.10.9-tuxcare.1
happy-dom
TuxCare:npm
9.20.3-tuxcare.0 up to 9.20.3-tuxcare.3, plus listed versions
9.20.39.20.3-tuxcare.19.20.3-tuxcare.2
9.20.3-tuxcare.3
@happy-dom/global-registrator
TuxCare:npm
From an advisory covering 3 CVEs
9.10.9-tuxcare.0 up to 9.10.9-tuxcare.1, plus listed versions
9.10.9
9.10.9-tuxcare.1
@happy-dom/global-registrator
TuxCare:npm
9.20.3-tuxcare.0 up to 9.20.3-tuxcare.3, plus listed versions
9.20.39.20.3-tuxcare.19.20.3-tuxcare.2
9.20.3-tuxcare.3
@happy-dom/jest-environment
TuxCare:npm
From an advisory covering 3 CVEs
9.10.9-tuxcare.0 up to 9.10.9-tuxcare.1, plus listed versions
9.10.9
9.10.9-tuxcare.1
@happy-dom/jest-environment
TuxCare:npm
From an advisory covering 3 CVEs
14.12.3-tuxcare.0 up to 14.12.3-tuxcare.2, plus listed versions
14.12.3
14.12.3-tuxcare.2
@happy-dom/jest-environment
TuxCare:npm
9.20.3-tuxcare.0 up to 9.20.3-tuxcare.3, plus listed versions
9.20.39.20.3-tuxcare.19.20.3-tuxcare.2
9.20.3-tuxcare.3

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-51757 is a critical vulnerability (CVSS 9.3) in Capricorn86 Happy-dom, published November 6, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.77%, the 55th percentile. Fixed in happy-dom 15.10.2.

References

Show 4 moreShow less
MoveEnter Open