CVE-2025-62410
JavaScript vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2025-62410) was discovered in happy-dom versions before 20.0.2, related to insufficient isolation of untrusted JavaScript code. The vulnerability was disclosed on October 15, 2025, and affects the security mechanism intended to isolate untrusted JavaScript code. This vulnerability is particularly concerning as it represents an incomplete fix for a previous vulnerability (CVE-2025-61927) (GitHub Advisory).

Technical details

The vulnerability stems from the --disallow-code-generation-from-strings flag not providing sufficient isolation for untrusted JavaScript in happy-dom. The core issue is that untrusted scripts and the main application continue to run in the same Isolate/process, enabling attackers to deploy prototype pollution payloads. The vulnerability has received a CVSS 4.0 Base Score of 9.4 (CRITICAL) with the 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 (NVD).

Impact

The vulnerability can lead to arbitrary code execution by breaking out of Node.js' vm isolation. Attackers can pollute builtins like Object.prototype.hasOwnProperty() to obtain important references at runtime, such as the 'process' object, potentially enabling arbitrary command execution. Additionally, attackers might be able to retrieve and exfiltrate information available in the global scope via fetch(), even without prototype pollution capabilities (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 20.0.2 of happy-dom. For users unable to update immediately, it is recommended to freeze the builtins in the global scope to defend against prototype pollution attacks. However, this may not fully mitigate all attack vectors, and migration to isolated-vm is strongly recommended for a more comprehensive security solution (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

CVE-2025-62410CRITICAL9.4
  • JavaScriptJavaScript
  • happy-dom
NoYesOct 15, 2025
CVE-2025-62381HIGH8.3
  • JavaScriptJavaScript
  • sveltekit-superforms
NoYesOct 15, 2025
CVE-2025-62374MEDIUM6.4
  • JavaScriptJavaScript
  • parse
NoYesOct 14, 2025
CVE-2025-62378MEDIUM6.1
  • JavaScriptJavaScript
  • commandkit
NoYesOct 15, 2025
CVE-2025-62380LOW2.9
  • JavaScriptJavaScript
  • mailgen
NoYesOct 15, 2025

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