happy-dom
21.0.4 · 20 Oct 2026MIT37.6M / weekRepositorynpmAtom feed
Upgrading happy-dom From 20.3.2 to 20.3.3
1 release in betweenevery note read
Reading releases, release notes and advisories…
Security
5 advisories still affect 20.3.3
- 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: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code executionhigh · GHSA-834v-8h66-3h79
Upgrading to 21.0.4 clears them.
Release by release
- New
Add "which" property to
KeyboardEvent- By @TrevorBurnham in task #1897 - Fixed
Node.getRootNode()returns correct root for detached shadow trees - By @TrevorBurnham in task #1941 - Fixed
Fixes issue that prevented
Node.contains()to work for<select>and<form>elements - By @TrevorBurnham in task #1876 - Fixed
Replace
setTimeout()withqueueMicrotask()where appropriate - By @TrevorBurnham in task #1880
- 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.