CVE-2026-115895
8.8 HIGHpublic exploit availablePublished 2026-10-23 · Updated 2026-10-26
AI risk analysis
- Summary
- A JavaScript evaluation vulnerability in Happy DOM allows arbitrary code execution via a malformed named import alias in ESM modules when enableJavaScriptEvaluation is enabled, due to insufficient validation of the alias against JavaScript binding identifier rules before injection into generated destructuring code.
- Exploitability
- Exploitation requires an attacker-controlled HTML or module source with a specially crafted invalid alias that becomes valid after compilation, and the target must have enableJavaScriptEvaluation enabled; user interaction is needed as indicated by CVSS UI:R.
- Blast radius
- Successful exploitation grants full host process compromise (C:H/I:H/A:H), enabling remote code execution, data exfiltration, or system manipulation in Node.js environments using affected Happy DOM versions.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to Happy DOM version 21.0.4 or later, which contains the fix for this residual path of CVE-2026-33943.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. From 17.0.0 until 21.0.4, packages/happy-dom/src/module/ECMAScriptModuleCompiler.ts accepts a named ESM import alias without validating that it is a JavaScript binding identifier before inserting it into a generated destructuring binding. With enableJavaScriptEvaluation enabled, attacker-controlled HTML or module source can use an invalid alias that becomes a valid default initializer after compilation, causing the generated JavaScript to execute in the Node.js host process. The demonstrated reachable path uses a JSON module import attribute, which prevents the malicious alias from being emitted again in a later ESM circular-import assignment and keeps the generated function syntactically valid. This incomplete fix for CVE-2026-33943 is a distinct residual path because the earlier remediation validated the local export importName path but not the named-import alias. This issue is fixed in version 21.0.4.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Public exploit & PoC references
All references
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- CRITICALCVE-2026-107700PoC
- HIGHCVE-2026-112770PoC
- HIGHCVE-2026-112772PoC
- HIGHCVE-2026-118614
- CRITICALCVE-2026-121491
- HIGHCVE-2026-51831
- CRITICALCVE-2026-54141PoC
- CRITICALCVE-2026-61991
Related by shared AI tags and CWE weakness class. Browse the full archive.