Vulnerability library
Security checkOctober 23, 2026

Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmhappy-dom

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The ESM compiler in [email protected] does not validate imported local binding aliases before interpolating them into generated JavaScript.

As a result, an invalid ESM import alias can be transformed into a valid JavaScript destructuring default initializer and executed.

Recommendation

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

  • Affected version(s): >= 17.0.0, <= 21.0.3
  • Patched version(s): 21.0.4

References

Could your website be exposed too?

SmartScanner can check your website for Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 23, 2026