◆ CVE Hub

CVE-2026-115895

Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution

Published
2026-10-23
Last modified
2026-10-23
CNA
GitHub_M
NVD status
Received
CWE
CWE-94

Fetching some sources has been requested. Reload in about a minute to see them.

CVSS v3.1 (listed by NVD)
8.8
HIGH
Scored by github.com (not yet scored by NVD)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0 (listed by NVD)
—
Not scored
CVSS (listed by CVE.org)
8.8
HIGH
Scored by CNA (GitHub_M) · v3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS exploit probability
0.6%
Percentile 45.8%
as of 2026-10-24
CISA KEV
—
Not listed

Attack conditions and impact

Derived from the CNA (via NVD) CVSS 3.1 vector
NetworkNo authUser action Confidentiality HIntegrity HAvailability H
MetricValueMeaning
Attack vector AVNNetwork
Attack complexity ACLLow (easy)
Privileges required PRNNone
User interaction UIRRequired
Scope SUUnchanged
Confidentiality CHHigh
Integrity IHHigh
Availability AHHigh
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Description

NVD

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 assessments

ProviderVersionScoreVector
NVD / [email protected] (Secondary)3.18.8 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CNA / GitHub_M3.18.8 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products and packages

CNA (CVE.org)

VendorProductVersions
capricorn86happy-dom
affected: >= 17.0.0, < 21.0.4

Open-source packages (GitHub Advisory / OSV)

GHSA-834v-8h66-3h79 GHSA HIGH reviewed

Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution

EcosystemPackageAffected versionsFixed in
npmhappy-dom>= 17.0.0, <= 21.0.321.0.4

Linux distribution status

Red Hat ↗ important

ReleasePackageStatusFixed version / notes
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/gateway-rhel9affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/gateway-rhel9affected
Red Hat Ansible Automation Platform 2automation-gatewayfix deferred
Red Hat Ansible Automation Platform 2automation-platform-uiaffected
Red Hat OpenShift AI (RHOAI)rhoai/odh-feature-server-rhel9affected

Debian ↗

No record

Ubuntu ↗ Fetching

References (5)