happy-dom Known Vulnerabilities & Fixes
happy-dom has 5 known security vulnerabilities in npm (Node.js). Upgrade to version 21.0.4 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.
Low Immediate Risk
No actively exploited vulnerabilities detected. Monitor and update in your next maintenance window.
Recommended safe version: 21.0.4
Upgrading to 21.0.4 or later resolves all 5 known vulnerabilities in happy-dom. Run: npm install happy-dom@21.0.4
Is happy-dom in your project?
Check if you're affected and upgrade to 21.0.4 to stay secure.
Security Summary
- 5 affected version ranges have been identified across these 5 advisories.
- 100% of known issues have a published fixed version.
- Highest exploit-probability (EPSS) score for happy-dom: 1.3%.
- Remediation: npm update happy-dom
Vulnerabilities
5 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Nov 6, 2024, most recently Oct 23, 2026 (716 days apart).
| CVE / GHSA | Severity |
|---|---|
| CVE-2024-51757 happy-dom allows for server side code to be executed by a <script> tag
| CRITICAL |
| CVE-2026-33943 Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code
| HIGH |
| CVE-2025-61927 Happy DOM: VM Context Escape can lead to Remote Code Execution
| CRITICAL |
| CVE-2025-62410 happy-dom's `--disallow-code-generation-from-strings` is not sufficient for isolating untrusted JavaScript
| CRITICAL |
| CVE-2026-115895 Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution
| HIGH |
About This Data
Vulnerability data for happy-dom is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.
CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Related npm (Node.js) Packages
Other packages in this ecosystem, ranked by shared vulnerabilities where available.
Check Your Dependencies
Scan your project to check if you're using a vulnerable version of happy-dom.