happy-dom
21.0.4 · 20 Oct 2026MIT37.7M / weekRepositorynpmAtom feed
Upgrading happy-dom From 13.5.3 to 13.10.1
22 releases in betweenevery note read
Security
5 advisories still affect 13.10.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
- Fixed
Fixes bug where cloning a response without a body caused the error
TypeError: Cannot read properties of null (reading 'Symbol(nodeStream)')to be thrown - By @capricorn86 in task #1325
- Fixed
- New
Adds support for the
Headers.getSetCookie()- By @ushiboy and @capricorn86 in task #1315
- New
- New
Adds support for
AbortSignal.throwIfAborted()- By @capricorn86 in task #1255
- New
- Fixed
Fixes bug related to multiple fallbacks to CSS variables being set incorrectly - By @odanado in task #1308
- Fixed
- Fixed
Fixes problem related to invalid pseudo query selectors matching elements (e.g. ":before" should only match the pseudo element and not the actual element) - By @capricorn86 in task #1122
- Fixed
- New
Adds support for returning URL relative to window location in
HTMLLinkElement.href,HTMLImageElement.srcandHTMLScriptElement.src- By @capricorn86 in task #1135
- New
- Fixed
Fixes problem where some elements (e.g.
<li>,<h1>or<table>) doesn't allow itself as direct descendant when parsing HTML, but should allow itself as descendant when it is not at first level - By @capricorn86 in task #1039
- Fixed
- New
Adds deprecated keyCode property to KeyboardEvent - By @capricorn86 in task #1043
- 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.