Read the docs
TI-2024-34662 Aliases CVE-2024-51757GHSA-96g7-g7g9-jxw8

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

Priority HIGH 81CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Cross-site scripting, Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79 and CWE-94.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00772 55th percentileScored 2026-11-07
Fix Fixed happy-dom (capricorn86): 15.10.2happy-dom (npm): 15.10.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
capricorn86happy-dombefore 15.10.215.10.2Patch availableCNA
—happy-dom (npm)before 15.10.215.10.2Patch availableGHSA-96g7-g7g9-jxw8
  • happy-dom Vendorcapricorn86 Affected before 15.10.2 Fixed in 15.10.2 Patch available CNA
  • happy-dom (npm) Vendor— Affected before 15.10.2 Fixed in 15.10.2 Patch available GHSA-96g7-g7g9-jxw8

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:capricorn86:happy-dom:*:*:*:*:*:*:*:*——capricorn86
  • cpe:2.3:a:capricorn86:happy-dom:*:*:*:*:*:*:*:* Versions — — ·capricorn86

Remediation

  • Fix · CNA happy-dom (capricorn86) Fixed in 15.10.2
  • Fix · GHSA-96g7-g7g9-jxw8 happy-dom (npm) Fixed in 15.10.2 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-51757
  2. 2026-10-03 Alias added: GHSA-96g7-g7g9-jxw8

References

  • TI-2026-26294 Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code CVSS 3.1CRITICAL 9.8
  • TI-2025-38677 --disallow-code-generation-from-strings is not sufficient for isolating untrusted JavaScript in happy-dom CVSS 4.0CRITICAL 9.4
  • TI-2026-80004 Code injection in Happy DOM import aliases allows host code execution CVSS 3.1HIGH 8.8
  • TI-2026-82200 Server-side request forgery in Happy DOM server renderer proxy CVSS 3.1HIGH 7.5
  • TI-2026-26521 Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies CVSS 3.1HIGH 7.5
  • TI-2026-82202 Cookie scope forgery in Happy DOM lets attackers set victim cookies CVSS 3.1MEDIUM 6.5
See all 8 →

Sources