Description
The mitigation proposed in GHSA-37j7-fg3j-429f for disabling eval/Function when executing untrusted code in happy-dom does not suffice, since it still allows prototype pollution payloads.
Recommendation
Update the happy-dom package to the latest compatible version. Followings are version details:
- Affected version(s): >= 19.0.0, < 20.0.2
- Patched version(s): 20.0.2
References
Could your website be exposed too?
SmartScanner can check your website for happy-dom's `--disallow-code-generation-from-strings` is not sufficient for isolating untrusted JavaScript and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Happy DOM: VM Context Escape can lead to Remote Code Execution - CVE-2025-61927
- Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code - CVE-2026-33943
- Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML - CVE-2026-118660
- Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution - CVE-2026-115895


