Wiz Agents & Workflows are here

CVE-2025-62410
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-62410 affects happy-dom versions before 20.0.2, where the --disallow-code-generation-from-strings flag is insufficient for isolating untrusted JavaScript. This vulnerability, discovered on October 15, 2025, is an incomplete fix for CVE-2025-61927. The core issue lies in the fact that untrusted scripts and the main application share the same Isolate/process, enabling attackers to deploy prototype pollution payloads (GitHub Advisory, NVD).

Technical details

The vulnerability stems from incomplete sandboxing where disabling dynamic code generation only blocks eval and Function but does not isolate execution contexts. Both trusted and untrusted scripts share prototypes in one isolate, allowing attackers to pollute builtins like Object.prototype.hasOwnProperty() to obtain important references at runtime. The vulnerability has received a CVSS 4.0 Base Score of 9.4 (CRITICAL) with vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H (Red Hat).

Impact

The vulnerability enables arbitrary code execution by breaking out of the Node.js' vm isolation. Attackers can hijack important references like 'process' and execute arbitrary commands through prototype pollution payloads. Even without prototype pollution capabilities, untrusted code can still retrieve and exfiltrate information available in the global scope via fetch() (GitHub Advisory, Miggo).

Mitigation and workarounds

The vulnerability is fixed in version 20.0.2. As a temporary workaround, users can freeze the builtins in the global scope to defend against prototype pollution attacks. However, this is not a complete solution as untrusted code may still access and exfiltrate global scope information. The recommended long-term solution is migrating to isolated-vm (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-3hfp-gqgh-xc5gCRITICAL9.6
  • JavaScriptJavaScript
  • @lightdash/cli
NoYesApr 02, 2026
CVE-2026-34950CRITICAL9.1
  • JavaScriptJavaScript
  • fast-jwt
NoNoApr 02, 2026
CVE-2026-34752HIGH8.7
  • JavaScriptJavaScript
  • haraka
NoYesApr 02, 2026
CVE-2026-34825HIGH8.5
  • JavaScriptJavaScript
  • @nocobase/plugin-workflow-sql
NoYesApr 02, 2026
GHSA-ccgf-5rwj-j3hvLOW2.1
  • JavaScriptJavaScript
  • telejson
NoYesApr 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management