CVE-2026-33943
Last modified
CVE-2026-33943 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.79% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Capricorn86 | Happy Dom | >= 15.10.0, < 20.8.8 |
References
- https://github.com/capricorn86/happy-dom/releases/tag/v20.8.8Product, Release Notes
- https://github.com/capricorn86/happy-dom/security/advisories/GHSA-6q6h-j7hj-3r64Exploit, Vendor Advisory
- https://github.com/capricorn86/happy-dom/security/advisories/GHSA-6q6h-j7hj-3r64Exploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-33943?
How severe is CVE-2026-33943?
How do I fix CVE-2026-33943?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-33938Handlebars provides the power necessary to let users build s…8.1
- CVE-2026-33939Handlebars provides the power necessary to let users build s…7.5
- CVE-2026-3394A vulnerability was detected in jarikomppa soloud up to 2020…7.8
- CVE-2026-33940Handlebars provides the power necessary to let users build s…8.1
- CVE-2026-33941Handlebars provides the power necessary to let users build s…8.2
- CVE-2026-33942Saloon is a PHP library that gives users tools to build API …9.8
- CVE-2026-33945Incus is a system container and virtual machine manager. Inc…9.6
- CVE-2026-33946MCP Ruby SDK is the official Ruby SDK for Model Context Prot…5.9
- CVE-2026-33947jq is a command-line JSON processor. In versions 1.8.1 and b…5.5
- CVE-2026-33948jq is a command-line JSON processor. Commits before 6374ae0b…5.3
- CVE-2026-33949Tina is a headless content management system. Prior to versi…8.1
- CVE-2026-3395A flaw has been found in MaxSite CMS up to 109.1. This impac…9.8
Are you affected by CVE-2026-33943?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
