Skip to main content
← All vulnerabilities
CVE-2025-62410GHSA-QPM2-6CQ5-7PQ5

--disallow-code-generation-from-strings is not sufficient for isolating untrusted JavaScript in happy-dom

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 20.0.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • capricorn86 happy-dom

    fixed in 20.0.2

  • happy-domnpm

    From 19.0.0 · fixed in 20.0.2

References 2

GitHub · capricorn86/happy-dom