Vulnerabilities/

happy-dom's `--disallow-code-generation-from-strings` is not sufficient for isolating untrusted JavaScript

Severity:
High

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:

References

Related Issues

Tags:
npm
happy-dom
Anything's wrong? Let us know Last updated on November 27, 2025