happy-dom
21.0.4 · 20 Oct 2026MIT37.6M / weekRepositorynpmAtom feed
21.0.4 is the newest release of 21.x.
In short
1 security
Security
Fixes 1 advisory that affected 20.14.6
- HighHappy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTMLGHSA-c8p4-j97h-3vg8 · 28 Oct 2026Fixed in 21.0.0
1 advisory affects 21.0.0; 21.0.4 fixes them
- HighHappy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code executionGHSA-834v-8h66-3h79 · 23 Oct 2026Fixed in 21.0.4
Release note
:bomb: Breaking Changes
- Security
Disables CSS and IFrame loading by default to prevent server-side request forgery (SSRF) - By @capricorn86
An attacker could embed
<iframe>or<link rel="stylesheet">elements in untrusted HTML to make Happy DOM send HTTP requests from the server to attacker-chosen URLs, including internal services. This could allow access to otherwise unreachable endpoints or trigger unintended actions, depending on the application and its network access.The settings property
disableCSSFileLoadinghas been deprecatedAdded the new settings properties enableCSSFileLoading and enableIframePageLoading
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.