happy-dom
21.0.4 · 20 Oct 2026MIT37.6M / weekRepositorynpmAtom feed
20.14.6 is the newest release of 20.x.
In short
1 new
Security
3 advisories affect 20.10.0; 21.0.4 fixes the others
- HighHappy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTMLGHSA-c8p4-j97h-3vg8 · 28 Oct 2026No fix yet
- HighHappy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code executionGHSA-834v-8h66-3h79 · 23 Oct 2026Fixed in 21.0.4
- ModerateHappy DOM has cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookiesGHSA-5fpq-26gf-qwcr · 28 Oct 2026Fixed in 20.14.6
Release note
:art: Features
Adds support for setting a canvas adapter for handling the canvas rendering using the browser setting canvasAdapter - By @RAprogramm and @capricorn86 in task #241
Adds new package @happy-dom/node-canvas-adapter - By @RAprogramm and @capricorn86 in task #241
@happy-dom/node-canvas-adapter is a pluggable canvas adapter for Happy DOM using node-canvas.
Adds support for loading image files when enabling the browser setting enableImageFileLoading - By @capricorn86 in task #241
Adds support for loading image data URLs - By @capricorn86 in task #241
Adds support for ImageData - By @capricorn86 in task #241
Adds support for ImageBitmap - By @capricorn86 in task #241
Adds support for Window.createImageBitmap() - By @capricorn86 in task #241
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.