SCA: security update for happy-dom (GHSA-834v-8h66-3h79)

high Tenable Self-Hosted Container Security Plugin ID 477212

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-115895)

Solution

Update the happy-dom library and its related packages to version 21.0.4 or later.

See Also

https://github.com/advisories/GHSA-834v-8h66-3h79

Plugin Details

Severity: High

ID: 477212

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 10/24/2026

Updated: 10/24/2026

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.51

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-115895

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/23/2026

Vulnerability Publication Date: 10/23/2026

Reference Information

CVE: CVE-2026-115895

cwe: CWE-94