CVE-2026-115895

Source
https://cve.org/CVERecord?id=CVE-2026-115895
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115895.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-115895
Aliases
Downstream
CGA (4)
CLSA (2)
DHI (1)
Published
2026-10-23T21:32:24Z
Modified
2026-11-01T02:30:15Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-94"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115895.json"
}
References

Affected packages

Git / github.com/capricorn86/happy-dom

Affected ranges

Type
GIT
Repo
https://github.com/capricorn86/happy-dom
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "17.0.0"
                },
                {
                    "fixed":  "21.0.4"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "fd163520b74d9fa146be91f7b4e4f46d6cccbe13"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v21.0.4",
            "range":  [
                {
                    "fixed":  "fd163520b74d9fa146be91f7b4e4f46d6cccbe13"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "21.0.4"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}

Affected versions

v17.*
v17.0.0
v17.0.1
v17.0.2
v17.0.3
v17.0.4
v17.1.0
v17.1.1
v17.1.10
v17.1.11
v17.1.12
v17.1.13
v17.1.2
v17.1.3
v17.1.4
v17.1.5
v17.1.6
v17.1.7
v17.1.8
v17.1.9
v17.2.0
v17.2.1
v17.2.2
v17.2.3
v17.2.4
v17.3.0
v17.3.1
v17.3.2
v17.4.0
v17.4.1
v17.4.2
v17.4.3
v17.4.4
v17.4.5
v17.4.6
v17.4.7
v17.4.8
v17.4.9
v17.5.0
v17.5.1
v17.5.2
v17.5.3
v17.5.4
v17.5.5
v17.5.6
v17.5.7
v17.5.8
v17.5.9
v17.6.0
v17.6.1
v17.6.2
v17.6.3
v18.*
v18.0.0
v18.0.1
v19.*
v19.0.0
v19.0.1
v19.0.2
v20.*
v20.0.0
v20.0.1
v20.0.10
v20.0.11
v20.0.2
v20.0.3
v20.0.4
v20.0.5
v20.0.6
v20.0.7
v20.0.8
v20.0.9
v20.1.0
v20.1.1
v20.10.0
v20.10.1
v20.10.2
v20.10.3
v20.10.4
v20.10.5
v20.10.6
v20.11.0
v20.11.1
v20.11.10
v20.11.11
v20.11.12
v20.11.13
v20.11.14
v20.11.15
v20.11.2
v20.11.3
v20.11.4
v20.11.5
v20.11.6
v20.11.7
v20.11.8
v20.11.9
v20.12.0
v20.12.1
v20.12.2
v20.13.0
v20.13.1
v20.13.2
v20.14.0
v20.14.1
v20.14.2
v20.14.3
v20.14.4
v20.14.5
v20.14.6
v20.2.0
v20.3.0
v20.3.1
v20.3.2
v20.3.3
v20.3.4
v20.3.5
v20.3.6
v20.3.7
v20.3.8
v20.3.9
v20.4.0
v20.5.0
v20.5.1
v20.5.2
v20.5.3
v20.5.4
v20.5.5
v20.6.0
v20.6.1
v20.6.2
v20.6.3
v20.6.4
v20.6.5
v20.7.0
v20.7.1
v20.7.2
v20.8.0
v20.8.1
v20.8.2
v20.8.3
v20.8.4
v20.8.5
v20.8.6
v20.8.7
v20.8.8
v20.8.9
v20.9.0
v21.*
v21.0.0
v21.0.1
v21.0.2
v21.0.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115895.json"