# CVE-2025-62410: --disallow-code-generation-from-strings is not sufficient for isolating untrusted JavaScript in happy-dom

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 20.0.2 (CNA); fix release not confirmed
- Status: published
- Published: 2025-10-15 · Modified: 2025-10-15
- Aliases: GHSA-qpm2-6cq5-7pq5
- Record: https://cvemate.com/vulnerability/CVE-2025-62410 · JSON: https://cvemate.com/vulnerability/CVE-2025-62410/json

## Description

```text
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.
```

## Signals

- CVSS: 9.4 critical (v4.0, CVE.org) 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
- EPSS: 0.378%, percentile 33.858%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- capricorn86 happy-dom: \< 20.0.2
- Npm happy-dom (Npm): ≥ 19.0.0, \< 20.0.2

## References

- <https://github.com/capricorn86/happy-dom/security/advisories/GHSA-qpm2-6cq5-7pq5>
- <https://github.com/capricorn86/happy-dom/commit/f4bd4ebe3fe5abd2be2bcea1c07043c8b0b70eea>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-62410>
- <https://github.com/capricorn86/happy-dom>

---

Data as of 2026-12-05T06:50:17.387Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
