CVE-2026-33943: capricorn86 happy-dom · Code Injection
Affects capricorn86 happy-domSource CVE Database V5
Not known to be exploited · CVSS 8.8 High : upgrade to 20.8.8 soon.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 20.8.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Oct 2026.
What to do
Upgrade capricorn86 happy-dom to 20.8.8.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| capricorn86happy-dom | Affected
| Fixed in
|
npmhappy-dompkg:npm/happy-domOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
An official fix is available in happy-dom version 20.8.8. Users should upgrade to version 20.8.8 or later to remediate this vulnerability. No additional mitigation steps are indicated by the vendor advisory.
Description
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.
References
- github.com/capricorn86/happy-dom/security/advisories/GHSA-6q6h-j7hj-3r64 (opens in a new tab)
- github.com/capricorn86/happy-dom/commit/5437fdf8f13adb9590f9f52616d9f69c3ee8db3c (opens in a new tab)
- github.com/capricorn86/happy-dom/releases/tag/v20.8.8 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-33943 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2452522 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33943.json (opens in a new tab)