Critical severity · published Oct 15, 2025
CVE-2025-62410
--disallow-code-generation-from-strings is not sufficient for isolating untrusted JavaScript in happy-dom
9.4
CVSS
0.4%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 29% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
HA
happy-dom · capricorn86
< 20.0.2 · source: vendor
Affected product
HA
happy-dom
capricorn86
More from happy-dom
9.8
CVE-2026-33943
Happy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable code
8.8
CVE-2026-115895
Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution
8.6
CVE-2026-118660
Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML
7.5
CVE-2026-118659
@happy-dom/server-renderer: ServerRendererServer Target-Origin Bypass SSRF / Open Proxy
7.5
CVE-2026-34226
Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies