CVE-2026-115895 json
Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution
published 17d ago modified 10d ago also EUVD-2026-109189 , GHSA-834v-8h66-3h79
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 41%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm happy-dom 21.0.4
- capricorn86 happy_dom 21.0.4
Is CVE-2026-115895 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-115895 updated cvss 8.8
happy-dom: happy-dom: Arbitrary code execution via unvalidated ECMAScript Module import alias
-
Red Hat Ansible Automation Platform 2 automation-gateway 2.5.20260923-1.el9apaffected: workaround, no fix available “Fix deferred”
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-feature-server-rhel9affected: workaround, no fix available
-
Red Hat Ansible Automation Platform 2 automation-platform-ui 2.6.15-1.el9ap, ansible-automation-platform-26/gateway-rhel9, ansible-automation-platform-27/gateway-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 10d ago
Exploit prediction
0.47% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/capricorn86/happy-dom/security/advisories/GHSA-834v-8h66-3h79 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | happy-dom | >=17.0.0, <21.0.4 |
21.0.4 |
Affected products
- capricorn86 happy-dom
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/capricorn86/happy-dom/pull/2537
web
-
github.com
/capricorn86/happy-dom/commit/fd163520b74d9fa146be91f7b4e4f46d6cccbe13
web
-
github.com
/capricorn86/happy-dom/security/advisories/GHSA-834v-8h66-3h79
exploit, web
-
github.com
/capricorn86/happy-dom/releases/tag/v21.0.4
web
-
github.com
/capricorn86/happy-dom
package
Sources
- CVE List CVE-2026-115895
- GitHub Advisory GHSA-834v-8h66-3h79
- NVD CVE-2026-115895
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.