{"id":"CVE-2026-33943","revision":"1c9d5aa7a1b44fe283ee59f21ffd62e3","records":[{"revision":"1c9d5aa7a1b44fe283ee59f21ffd62e3","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-33943","aliases":[],"title":"Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code","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.","state":0,"publishedAt":"2026-03-27T21:15:19.186+00:00","modifiedAt":"2026-07-15T01:05:08.62+00:00","affected":[{"ecosystem":"Vendor product","name":"happy-dom","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"capricorn86\",\n                    \"product\": \"happy-dom\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 15.10.0, < 20.8.8\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"references":["https://github.com/capricorn86/happy-dom/security/advisories/GHSA-6q6h-j7hj-3r64","https://github.com/capricorn86/happy-dom/commit/5437fdf8f13adb9590f9f52616d9f69c3ee8db3c","https://github.com/capricorn86/happy-dom/releases/tag/v20.8.8"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-33943","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-33943","identifiers":["CVE-2026-33943"]},"retained":false,"historicalAffected":[]}],"coverage":[]}