happy-dom
21.0.4 · 20 Oct 2026MIT37.7M / weekRepositorynpmAtom feed
Upgrading happy-dom From 12.1.2 to 12.10.3
23 releases in betweenevery note read
Security
5 advisories still affect 12.10.3
- 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
- Fixed
Fix for week being wrong sometimes as it is not calculated as UTC in
HTMLInputElement.valueAsDate().
- Fixed
- Fixed
Element.cloneNode()should not clone scroll properties.
- Fixed
- Fixed
Fixes wrong callback parameter order of "key" and "value" in
FormData.forEach().
- Fixed
- New
Adds support for
Navigator.sendBeacon(). - New
Adds support for the property
Window.CSSStyleDeclaration.
- New
- Fixed
Fixes Node 18.18.2+ support in
@happy-dom/global-registratorby not binding classes to the global object.
- Fixed
12.9.1nothing new or fixed in the note
- New
Improves performance of the async task manager. This will improve performance of timers in general as they have less logic executed related to the async task manager.
- New
- New
Adds missing second parameter in callbacks from
MutationObserver.
- New
1 internal line (docs, tests, tooling) left out.
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.