Capricorn86 Happy Dom vulnerabilities
2 vulnerabilities
Known vulnerabilities in Capricorn86 Happy Dom, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.
PrioritiseCVE-2026-34226capricorn86 · happy-dom +2 moreHappy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookiesHappy DOM is a JavaScript implementation of a web browser without its graphical user interface. Versions prior to 20.8.9 may attach cookies from the current page origin (`window.location`) instead of the request target URL when `fetch(..., { credentials: "include" })` is used. This can leak cookies from origin A to destination B. Version 20.8.9 fixes the issue.CVSS7.5HighEPSS0.52%PrioritiseCVE-2026-33943capricorn86 · happy-dom +2 moreHappy DOM ECMAScriptModuleCompiler: unsanitized export names are interpolated as executable codeHappy DOM is a JavaScript implementation of a web browser without its graphical user interface. In versions 15.10.0 through 20.8.7, a code injection vulnerability in `ECMAScriptModuleCompiler` allows an attacker to achieve Remote Code Execution (RCE) by injecting arbitrary JavaScript expressions inside `export { }` declarations in ES module scripts processed by happy-dom. The compiler directly interpolates unsanitized content into generated code as an executable expression, and the quote filter does not strip backticks, allowing template literal-based payloads to bypass sanitization. Version 20.8.8 fixes the issue.CVSS9.8CriticalEPSS0.85%