CVE-2026-115895
Last modified
CVE-2026-115895 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| capricorn86 | happy-dom | >= 17.0.0, < 21.0.4 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-115895?
How severe is CVE-2026-115895?
How do I fix CVE-2026-115895?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-115886MLflow is an open source AI engineering platform for agents,…6.5
- CVE-2026-115887GraphQL Scalars is a library of custom GraphQL scalars for c…7.5
- CVE-2026-115889Wasmtime is a runtime for WebAssembly. Prior to 36.0.19 and …9.9
- CVE-2026-11589The WP Support Plus Responsive Ticket System WordPress plugi…8.8
- CVE-2026-115892Wasmtime is a runtime for WebAssembly. From 46.0.0 until 48.…5.7
- CVE-2026-115893Wasmtime is a runtime for WebAssembly. Prior to 36.0.19, 48.…9.9
- CVE-2026-115897Serialize JavaScript serializes JavaScript values to a super…2.1
- CVE-2026-1159A weakness has been identified in itsourcecode Online Frozen…9.8
- CVE-2026-11590The WP Support Plus Responsive Ticket System WordPress plugi…8.6
- CVE-2026-11591The Widgets for Google Reviews plugin for WordPress is vulne…4.4
- CVE-2026-11592The Email Subscribers & Newsletters – Email Marketing, Post …4.3
- CVE-2026-115935The app/process-api-response-headers action accepts fake Cra…8.8
Are you affected by CVE-2026-115895?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
