CVE-2025-62410: --disallow-code-generation-from-strings is not sufficient for isolating untrusted JavaScript in happy-dom
Vulnerability summary
CVE-2025-62410 is a critical (CVSS 9.4) vulnerability in capricorn86 happy-dom. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 33.8% of scored vulnerabilities.
Severe, CVSS 9.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 15-10-2025PublishedVulnerability first disclosed.
- 15-10-2025Last modifiedVulnerability information updated.
Description
In versions before 20.0.2, it was found that --disallow-code-generation-from-strings is not sufficient for isolating untrusted JavaScript in happy-dom. The untrusted script and the rest of the application still run in the same Isolate/process, so attackers can deploy prototype pollution payloads to hijack important references like "process" in the example below, or to hijack control flow via flipping checks of undefined property. This vulnerability is due to an incomplete fix for CVE-2025-61927. The vulnerability is fixed in 20.0.2.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated9.4CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- NVDNIST9.4CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.38%
Chance of exploitation in the next 30 days
Percentile
34%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.36% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Capricorn861 product
- happy-dom< 20.0.2
Npm1 product
- happy-dom≥ 19.0.0, < 20.0.2
2 vendors · 2 products