Bug 2452522 (CVE-2026-33943) - CVE-2026-33943 happy-dom: Happy DOM: Remote Code Execution via JavaScript expression injection
Summary: CVE-2026-33943 happy-dom: Happy DOM: Remote Code Execution via JavaScript exp...
Keywords:
Status: NEW
Alias: CVE-2026-33943
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2452550 2452551
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-03-27 22:03 UTC by OSIDB Bzimport
Modified: 2026-03-27 23:25 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-03-27 22:03:10 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.