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

- Severity: Critical 9.4 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2025-10-15T17:16:21.561Z
- Modified: 2026-10-08T11:10:00.250Z
- Also known as: GHSA-qpm2-6cq5-7pq5
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- capricorn86 happy-dom: < 20.0.2
- happy-dom (npm): from 19.0.0 before 20.0.2

## Every score

- GitHub_M: CVSS:4.0 9.4 Critical `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`
- GitHub: CVSS:4.0 Critical `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`

## References

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

## Sources

- CVE List: [CVE-2025-62410](https://www.cve.org/CVERecord?id=CVE-2025-62410), CVE Terms of Use, modified 2025-10-15
- GitHub Advisory Database: [GHSA-qpm2-6cq5-7pq5](https://github.com/advisories/GHSA-qpm2-6cq5-7pq5), CC-BY-4.0, modified 2025-11-27
- NVD: [CVE-2025-62410](https://nvd.nist.gov/vuln/detail/CVE-2025-62410), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2025-62410 · Whole record: https://cve.day/CVE-2025-62410.json · Rebuilt by cve.day 2026-11-25T22:59:06.467Z
