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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-10-10 · Modified: 2025-10-10
- Aliases: GHSA-37j7-fg3j-429f
- Record: https://cvemate.com/vulnerability/CVE-2025-61927 · JSON: https://cvemate.com/vulnerability/CVE-2025-61927/json

## Description

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

## Signals

- CVSS: 7.2 high (v4.0, CVE.org) 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
- EPSS: 0.668%, percentile 53.298%, 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.0
- Npm happy-dom (Npm): \< 20.0.0

## References

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

---

Data as of 2026-12-05T12:32:31.611Z. 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
