Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
CriticalPublic exploit

Remote Code Execution in Happy DOM ECMAScriptModuleCompiler

IdentifiersCVE-2026-33943CWE-94· Improper Control of Generation of…

CVE-2026-33943 is a code injection vulnerability in Happy DOM, affecting versions 15.10.0 through 20.8.7. The flaw resides in the ECMAScriptModuleCompiler, which processes ES module scripts. An attacker can inject arbitrary JavaScript expressions inside export { } declarations; the compiler directly interpolates this unsanitized content into generated code as an executable expression. The existing quote filter is insufficient because it does not strip backticks, allowing template literal-based payloads to bypass sanitization. Successful exploitation can result in remote code execution in the context where happy-dom processes the malicious module.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows execution of arbitrary JavaScript code in the environment running happy-dom. Based on the provided context and CVSS vector, this can lead to high-impact compromise of confidentiality, integrity, and availability, including unauthorized access to sensitive data, modification of application behavior or data, and disruption of service.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, avoid processing untrusted or user-controlled ES module scripts with happy-dom, especially modules containing attacker-influenced export { } declarations. Restrict or sandbox execution contexts that run happy-dom so that arbitrary JavaScript execution has minimal access to the host environment and sensitive resources. Treat all module content as untrusted until the library is upgraded.

Remediation

Patch, then assume compromise.

Upgrade Happy DOM to version 20.8.8 or later, which fixes the vulnerability. The provided context identifies version 20.8.8 as the patched release. Where relevant, review the associated fix in commit 5437fdf8f13adb9590f9f52616d9f69c3ee8db3c and validate that all affected deployments are no longer using versions 15.10.0 through 20.8.7.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Capricorn86Happy-Domapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity5

Community discussion across Reddit, Mastodon, and other social sources.