GHSA-6q6h-j7hj-3r64 · Severity: high · Ecosystem: npm — Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code
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.
Conclusion & alert: CVE-2026-33943 is rated Exploit Available (58.1/100): CVSS High severity, with low exploitation likelihood (EPSS 0.07%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-28 | — | 0.07% | — |
Full EPSS history (1 record total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
GHSA-6q6h-j7hj-3r64 · Severity: high · Ecosystem: npm — Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code
| vendor | priority | summary | link |
|---|---|---|---|
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2026-33943 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| capricorn86 | happy_dom | >= 15.10.0, < 20.8.8 | cpe:2.3:a:capricorn86:happy_dom:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/capricorn86/happy-dom/commit/5437fdf8f13adb9590f9f52616d9f69c3ee8db3c | Patch |
| https://github.com/capricorn86/happy-dom/releases/tag/v20.8.8 | Product Release Notes |
| https://github.com/capricorn86/happy-dom/security/advisories/GHSA-6q6h-j7hj-3r64 | Exploit Vendor Advisory |