From c4573551ce406648cab2b1db1105a150badefd3e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 25 Oct 2026 13:21:34 +0800 Subject: [PATCH] chore: bump up happy-dom version to v21 [SECURITY] (#15739) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [happy-dom](https://redirect.github.com/capricorn86/happy-dom) | [`^20.3.0` → `^21.0.0`](https://renovatebot.com/diffs/npm/happy-dom/20.8.9/21.0.4) | ![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/21.0.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/20.8.9/21.0.4?slim=true) | | [happy-dom](https://redirect.github.com/capricorn86/happy-dom) | [`^20.0.0` → `^21.0.0`](https://renovatebot.com/diffs/npm/happy-dom/20.8.9/21.0.4) | ![age](https://developer.mend.io/api/mc/badges/age/npm/happy-dom/21.0.4?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/happy-dom/20.8.9/21.0.4?slim=true) | --- ### Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution [CVE-2026-115895](https://nvd.nist.gov/vuln/detail/CVE-2026-115895) / [GHSA-834v-8h66-3h79](https://redirect.github.com/advisories/GHSA-834v-8h66-3h79)
More information #### Details ##### Summary The ESM compiler in `happy-dom@20.14.5` does not validate imported local binding aliases before interpolating them into generated JavaScript. As a result, an invalid ESM import alias can be transformed into a valid JavaScript destructuring default initializer and executed. This appears to be an alternate injection path and incomplete remediation of GHSA-6q6h-j7hj-3r64 / CVE-2026-33943. The previous fix validates `importName` in the local `export { ... }` handler, but the named import handler still places an unvalidated `alias` directly into code context. These issues were confirmed through the public `Window` and `