happy-dom
21.0.4 · 20 Oct 2026MIT37.7M / weekRepositorynpmAtom feed
Upgrading happy-dom From 12.5.0 to 12.5.1
1 release in betweenevery note read
Security
5 advisories still affect 12.5.1
- 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 allows for server side code to be executed by a <script> tagcritical · GHSA-96g7-g7g9-jxw8
Upgrading to 21.0.0 clears them.
Release by release
- New
Adds support for
DocumentFragmentas a constructor (e.g.new DocumentFragment()). - Fixed
Fixes issue related to
ownerDocumentbeing null when executingownerDocument.createElement()in React 18. The error occurred when rendering a Radix UI component. The root cause was that React 18 usesDocumentFragmentas a constructor which was not supported.
- 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.