CVE-2026-33943
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface.
Published Mar 27, 2026 · updated Jul 15, 2026 · capricorn86 happy dom
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 allows an attacker to achieve Remote Code Execution (RCE) by injecting arbitrary JavaScript expressions inside 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.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Mar 27, 2026 · NIST NVD
Detected
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 allows an attacker to achieve Remote Code Execution (RCE) by injecting arbitrary JavaScript expressions inside declarations in ES module scripts processed by happy-dom. The compiler directly interpolates unsanitized content into gener
Jul 15, 2026 · NIST NVD
Updated
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 allows an attacker to achieve Remote Code Execution (RCE) by injecting arbitrary JavaScript expressions inside declarations in ES module scripts processed by happy-dom. The compiler directly interpolates unsanitized content into gener
Affected
- cpe capricorn86/happy domversion unspecified
Sources
- CVE.orgVulnerability recordCVE-2026-33943
Official CVE identifier
cve.org - NIST NVDVulnerability recordCVE-2026-33943
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 allows an attacker to achieve Remote Code Execution (RCE) by injecting arbitrary JavaSc
nvd.nist.gov