Vulnerabilities/

Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code

Severity:
High

Description

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.

Recommendation

Update the happy-dom package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
happy-dom
Anything's wrong? Let us know Last updated on March 26, 2026