npmWorst: Critical8 advisories
happy-dom: known vulnerabilities
happy-dom has 8 reviewed security advisories in the GitHub Advisory Database — 3 critical, 4 high, 1 moderate. The most recent was published 2026-10-28. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the happy-dom versions running across your servers, containers and images, and ranks what to patch first.
How to fix happy-dom
Upgrade happy-dom to a release at or above the fixed version shown for each advisory below. For npm:
npm install happy-dom@20.14.6 (or run npm audit fix)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (8)
Happy DOM has cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookies
Moderate 6.5 CWE-565
— Affected: before 20.14.6. Fixed in 20.14.6. Published 2026-10-28. GHSA-5fpq-26gf-qwcr · CVE-2026-118661
Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML
High 8.6 CWE-918
— Affected: before 21.0.0. Fixed in 21.0.0. Published 2026-10-28. GHSA-c8p4-j97h-3vg8 · CVE-2026-118660
Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution
High 8.8 CWE-94
— Affected: from 17.0.0 up to 21.0.4. Fixed in 21.0.4. Published 2026-10-23. GHSA-834v-8h66-3h79 · CVE-2026-115895
Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code
High 8.8 CWE-94
— Affected: from 15.10.0 up to 20.8.8. Fixed in 20.8.8. Published 2026-03-27. GHSA-6q6h-j7hj-3r64 · CVE-2026-33943
Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies
High 7.5 CWE-201
— Affected: before 20.8.9. Fixed in 20.8.9. Published 2026-03-27. GHSA-w4gp-fjgq-3q4g · CVE-2026-34226
happy-dom's `--disallow-code-generation-from-strings` is not sufficient for isolating untrusted JavaScript
Critical CWE-1321
— Affected: from 19.0.0 up to 20.0.2. Fixed in 20.0.2. Published 2025-10-15. GHSA-qpm2-6cq5-7pq5 · CVE-2025-62410
Happy DOM: VM Context Escape can lead to Remote Code Execution
Critical CWE-94
— Affected: before 20.0.0. Fixed in 20.0.0. Published 2025-10-10. GHSA-37j7-fg3j-429f · CVE-2025-61927
happy-dom allows for server side code to be executed by a <script> tag
Critical CWE-79
— Affected: before 15.10.2. Fixed in 15.10.2. Published 2024-11-06. GHSA-96g7-g7g9-jxw8 · CVE-2024-51757
Find happy-dom across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.