Vulnerability library
Security checkOctober 28, 2026

Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML

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

happy-dom v20.8.9 makes real server-side HTTP requests to arbitrary URLs when parsing HTML containing <iframe> or <link rel="stylesheet"> elements. This behavior is enabled by default (disableIframePageLoading: false, disableCSSFileLoading: false).

Recommendation

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

  • Affected version(s): <= 20.14.6
  • Patched version(s): 21.0.0

References

Could your website be exposed too?

SmartScanner can check your website for Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML and gives you actionable findings to investigate.

Start a free scan

Related Issues

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