# CVE-2025-61927: Happy-DOM has VM Context Escape

- Severity: High 7.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:L/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.67%, higher than 53% of CVEs (2026-12-01)
- Published: 2025-10-10T19:38:19.835Z
- Modified: 2026-10-08T13:10:00.200Z
- Also known as: GHSA-37j7-fg3j-429f
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Happy DOM v19 and lower contains a security vulnerability that puts the owner system at the risk of RCE (Remote Code Execution) attacks. A Node.js VM Context is not an isolated environment, and if the user runs untrusted JavaScript code within the Happy DOM VM Context, it may escape the VM and get access to process level functionality. It seems like what the attacker can get control over depends on if the process is using ESM or CommonJS. With CommonJS the attacker can get hold of the `require()` function to import modules. Happy DOM has JavaScript evaluation enabled by default. This may not be obvious to the consumer of Happy DOM and can potentially put the user at risk if untrusted code is executed within the environment. Version 20.0.0 patches the issue by changing JavaScript evaluation to be disabled by default.

(As written by CVE List.)

## Affected

- capricorn86 happy-dom: < 20.0.0
- happy-dom (npm): before 20.0.0

## Every score

- GitHub_M: CVSS:4.0 7.2 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:L/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:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P`

## References

- <https://github.com/capricorn86/happy-dom/security/advisories/GHSA-37j7-fg3j-429f> (web)
- <https://github.com/capricorn86/happy-dom/commit/819d15ba289495439eda8be360d92a614ce22405> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-61927> (advisory)
- <https://github.com/capricorn86/happy-dom/commit/de438ad72921c69793584aa657b48d3655dfac97> (web)
- <https://github.com/capricorn86/happy-dom> (package)
- <https://github.com/capricorn86/happy-dom/releases/tag/v20.0.0> (web)

## Sources

- CVE List: [CVE-2025-61927](https://www.cve.org/CVERecord?id=CVE-2025-61927), CVE Terms of Use, modified 2025-10-10
- GitHub Advisory Database: [GHSA-37j7-fg3j-429f](https://github.com/advisories/GHSA-37j7-fg3j-429f), CC-BY-4.0, modified 2025-10-13
- NVD: [CVE-2025-61927](https://nvd.nist.gov/vuln/detail/CVE-2025-61927), Public domain, modified 2026-10-08

---

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