Code Injection in Happy DOM - CVE-2026-33943
Published: April 27, 2026
Happy DOM
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper control of code generation in ECMAScriptModuleCompiler when processing crafted ES module export declarations in HTML content. A remote attacker can inject a specially crafted JavaScript expression to execute arbitrary code.
Exploitation requires JavaScript evaluation to be enabled and user interaction to process attacker-controlled HTML content.