Live threats

All CVEs / Capricorn86

CVE-2026-33943Capricorn86 Happy Dom

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
Mar 27, 2026
Updated
Oct 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94, CWE-917
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Happy Dom.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm happy-dom ≥ 15.10.0 < 20.8.8 20.8.8 npm install happy-dom@20.8.8

Per OSV / GitHub Advisories (GHSA-6q6h-j7hj-3r64). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
capricorn86happy_dom≥ 15.10.0 < 20.8.8

Official sources

References

Links published by the sources. Open them with care.