CVE-2025-61927 — Vulnerability in happy-dom — CVE Details
Happy DOM: VM Context Escape can lead to Remote Code Execution
Summary
Advisory Timeline
- First published October 10, 2025 (367 days ago).
- Last revised October 13, 2025 — 3 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install happy-dom@20.0.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| happy-dom | npm | All versions | 20.0.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P
References
- https://github.com/capricorn86/happy-dom/security/advisories/GHSA-37j7-fg3j-429fWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-61927ADVISORY
- https://github.com/capricorn86/happy-dom/commit/819d15ba289495439eda8be360d92a614ce22405WEB
- https://github.com/capricorn86/happy-dom/commit/de438ad72921c69793584aa657b48d3655dfac97WEB
- https://github.com/capricorn86/happy-domPACKAGE
- https://github.com/capricorn86/happy-dom/releases/tag/v20.0.0WEB
Frequently Asked Questions
- What is CVE-2025-61927?
- Happy DOM: VM Context Escape can lead to Remote Code Execution This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2025-61927?
- CVE-2025-61927 affects happy-dom. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-61927 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2024-51757CRITICAL
happy-dom allows for server side code to be executed by a <script> tag
- CVE-2025-62410CRITICAL
happy-dom's `--disallow-code-generation-from-strings` is not sufficient for isolating untrusted JavaScript
- CVE-2026-107722CRITICAL
fast-jwt: Incomplete patch of CVE-2026-34950: Non-whitespace key-prefix re-enables RSA→HS256 algorithm confusion
- CVE-2026-108261CRITICAL
TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment
- CVE-2026-33943HIGH
Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies