Read the docs
TI-2026-26294 Aliases CVE-2026-33943GHSA-6q6h-j7hj-3r64

Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code

Priority HIGH 76CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 1 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-94.

Summary

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. In versions 15.10.0 through 20.8.7, a code injection vulnerability in `ECMAScriptModuleCompiler` allows an attacker to achieve Remote Code Execution (RCE) by injecting arbitrary JavaScript expressions inside `export { }` declarations in ES module scripts processed by happy-dom. The compiler directly interpolates unsanitized content into generated code as an executable expression, and the quote filter does not strip backticks, allowing template literal-based payloads to bypass sanitization. Version 20.8.8 fixes the issue.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00646 51st percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial happy-dom (capricorn86): 20.8.8happy-dom (npm): 20.8.8Red Hat: 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
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-dom15.10.0 to before 20.8.820.8.8Patch availableCNA
—happy-dom (npm)15.10.0 to before 20.8.820.8.8Patch availableGHSA-6q6h-j7hj-3r64
  • happy-dom Vendorcapricorn86 Affected 15.10.0 to before 20.8.8 Fixed in 20.8.8 Patch available CNA
  • happy-dom (npm) Vendor— Affected 15.10.0 to before 20.8.8 Fixed in 20.8.8 Patch available GHSA-6q6h-j7hj-3r64

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:capricorn86:happy_dom:*:*:*:*:*:node.js:*:*15.10.0 to before 20.8.8Vulnerablecapricorn86
  • cpe:2.3:a:capricorn86:happy_dom:*:*:*:*:*:node.js:*:* Versions 15.10.0 to before 20.8.8 Vulnerable ·capricorn86

Remediation

  • Fix · CNA happy-dom (capricorn86) Fixed in 20.8.8
  • Fix · GHSA-6q6h-j7hj-3r64 happy-dom (npm) Fixed in 20.8.8 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat OpenShift Container Platform 4AffectedNo fix yet
Not affected: 1 product
  • Red Hat Ansible Automation Platform 2

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-33943
  2. 2026-10-03 Alias added: GHSA-6q6h-j7hj-3r64

References

  • TI-2026-26521 Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies CVSS 3.1HIGH 7.5

Sources