happy-dom
21.0.4 · 20 Oct 2026MIT37.8M / weekRepositorynpmAtom feed
Upgrading happy-dom From 16.2.4 to 21.0.0
166 releases in betweennotes for 163
Counted from 163 of 166 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking20.0.0
- Breaking20.0.0
- Breaking19.0.0
- Breaking18.0.0
- Breaking17.0.0
- Deprecated19.0.0
Security
1 advisory still affects 21.0.0
- Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code executionhigh · GHSA-834v-8h66-3h79
Upgrading to 21.0.4 clears it.
Fixes 5 advisories affecting 16.2.4
- Happy DOM: VM Context Escape can lead to Remote Code Executioncritical · GHSA-37j7-fg3j-429f
- Happy DOM has cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookiesmoderate · GHSA-5fpq-26gf-qwcr
- Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable codehigh · GHSA-6q6h-j7hj-3r64
- Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTMLhigh · GHSA-c8p4-j97h-3vg8
- Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookieshigh · GHSA-w4gp-fjgq-3q4g
- 21.0.0
Disables CSS and IFrame loading by default to prevent server-side request forgery (SSRF) - By @capricorn86
- 20.14.6
Fixes cookie scope forgery vulnerability - By @capricorn86
- 20.8.9
A security advisory (GHSA-w4gp-fjgq-3q4g) was reported for this security vulnerability.
- 20.8.8
A security advisory (GHSA-6q6h-j7hj-3r64) has been reported that shows a security vulnerability where it may be possible to escape the VM context and get access to process level functionality in unsafe environments using CommonJS.
- 20.0.1
A security advisory has been reported showing that the recommended preventive measure of running Node.js with
--disallow-code-generation-from-stringswasn't enough to protect against attackers escaping the VM context and accessing process-level functions. - 20.0.0
A security advisory (GHSA-37j7-fg3j-429f) has been reported that shows a security vulnerability where it's possible to escape the VM context and get access to process level functionality.
Release by release
- Security
Disables CSS and IFrame loading by default to prevent server-side request forgery (SSRF) - By @capricorn86
- Security
- Security
Fixes cookie scope forgery vulnerability - By @capricorn86
- Security
- Fixed
Preserve character references in comment data - By @hampustagerud in task #2409
- Fixed
- Fixed
End comments at the first comment end tag when it overlaps a comment start tag - By @hampustagerud in task #2407
- Fixed
- Fixed
Avoids cloning all properties in CSSPropertyManager.toString - By @erictheswift in task #2363
- Fixed
- Fixed
Fixes regression where not all CSS variables where resolved in
getComputedStyle()- By @klaesra in task #2344
- Fixed
- Fixed
Invalidate the computed style cache for the whole subtree - By @matmannion and @capricorn86 in task #2366
- Fixed
- New
Improves computed style cache - By @capricorn86 in task #2357
- New
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.