Critical VM Escape vulnerability reported in Happy DOM
A critical vulnerability (CVE-2025-61927) in Happy DOM JavaScript library allows authenticated users to escape the Node.js virtual machine sandbox and execute arbitrary code by exploiting JavaScript's constructor chain.
**If you're using Happy DOM, plan a quick update to version 20 or later which disables JavaScript evaluation by default. If you can't upgrade right away, manually disable JavaScript evaluation in your Happy DOM configuration or run Node.js with the --disallow-code-generation-from-strings flag to prevent VM escape attacks. Then allow JavaScript selectively only for trusted sources.**
#cybersecurity #infosec #advisory #vulnerability
https://beyondmachines.net/event_details/critical-vm-escape-vulnerability-reported-in-happy-dom-5-v-0-5-r/gD2P6Ple2L