happy-dom
21.0.4 · 20 Oct 2026MIT37.7M / weekRepositorynpmAtom feed
Upgrading happy-dom From 11.2.0 to 12.0.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 2
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking12.0.0
Security
5 advisories still affect 12.0.0
- 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
- Breaking
Changes the default user agent. The default user agent will now be
Mozilla/5.0 (X11; {process.platform} {process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/{packageVersion}. - New
It is now possible to pass user agent as an option to the
Windowconstructor or by settingWindow.happyDOM.settings.navigator.userAgent. - New
React will no longer output the message
Download the React DevTools for a better development experienceto the console when using the default user agent. It was previously detected as a supported browser.
- Breaking
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.