happy-dom
21.0.4 · 20 Oct 2026MIT37.8M / weekRepositorynpmAtom feed
15.11.7 is the newest release of 15.x.
In short
1 new1 fixed
Security
5 advisories affect 15.8.0; 20.14.6 fixes the others
- CriticalHappy DOM: VM Context Escape can lead to Remote Code ExecutionGHSA-37j7-fg3j-429f · 10 Oct 2025No fix yet
- Criticalhappy-dom allows for server side code to be executed by a <script> tagGHSA-96g7-g7g9-jxw8 · 6 Nov 2024Fixed in 15.10.2
- HighHappy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTMLGHSA-c8p4-j97h-3vg8 · 28 Oct 2026No fix yet
- HighHappy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookiesGHSA-w4gp-fjgq-3q4g · 29 Mar 2026Fixed in 20.8.9
- 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
:construction_worker_man: Patch fixes
Adds support for using non-ASCII characters in custom elements when parsing HTML - By @capricorn86 in task #1079
Fixes an issue where
getHTML()andgetInnerHTML()would return the slotted content of a shadow root before the template, but the template should be the first child - By @capricorn86 in task #1079Fixes a bug where SVG elements would not be found by
getElementsByTagName()- By @capricorn86 in task #1079Improves performance when creating elements (e.g. during parsing of HTML) - By @capricorn86 in task #1550
Binding all methods to the target scope in Proxies caused a performance hit, so this is now done when calling a method the first time
:art: Features
Adds support for all remaining SVG elements:
SVGAnimateElement,SVGAnimateMotionElement,SVGAnimateTransformElement,SVGCircleElement,SVGClipPathElement,SVGDefsElement,SVGDescElement,SVGEllipseElement,SVGFEBlendElement,SVGFEColorMatrixElement,SVGFEComponentTransferElement,SVGFECompositeElement,SVGFEConvolveMatrixElement,SVGFEDiffuseLightingElement,SVGFEDisplacementMapElement,SVGFEDistantLightElement,SVGFEDropShadowElement,SVGFEFloodElement,SVGFEFuncAElement,SVGFEFuncBElement,SVGFEFuncGElement,SVGFEFuncRElement,SVGFEGaussianBlurElement,SVGFEImageElement,SVGFEMergeElement,SVGFEMergeNodeElement,SVGFEMorphologyElement,SVGFEOffsetElement,SVGFEPointLightElement,SVGFESpecularLightingElement,SVGFESpotLightElement,SVGFETileElement,SVGFETurbulenceElement,SVGFilterElement,SVGForeignObjectElement,SVGGElement,SVGImageElement,SVGLineElement,SVGLinearGradientElement,SVGMarkerElement,SVGMaskElement,SVGMetadataElement,SVGMPathElement,SVGPathElement,SVGPatternElement,SVGPolygonElement,SVGPolylineElement,SVGRadialGradientElement,SVGRectElement,SVGScriptElement,SVGSetElement,SVGStopElement,SVGStyleElement,SVGSwitchElement,SVGSymbolElement,SVGTextElement,SVGTextPathElement,SVGTitleElement,SVGTSpanElement,SVGUseElementandSVGViewElement- By @capricorn86 in task #1079Adds support for
DOMMatrix,DOMMatrixReadOnly,DOMPointandDOMPointReadOnly- By @capricorn86 in task #1079Adds support for
SVGAngle,SVGAnimatedAngle,SVGAnimatedBoolean,SVGAnimatedEnumeration,SVGAnimatedInteger,SVGAnimatedLength,SVGAnimatedLengthList,SVGAnimatedNumber,SVGAnimatedNumberList,SVGAnimatedPreserveAspectRatio,SVGAnimatedRect,SVGAnimatedString,SVGAnimatedTransformList,SVGLength,SVGLengthList,SVGMatrix,SVGNumber,SVGNumberList,SVGPoint,SVGPointList,SVGPreserveAspectRatio,SVGRect,SVGStringList,SVGTransform,SVGTransformListandSVGUnitTypes- By @capricorn86 in task #1079
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.