Skip to content

build(deps-dev): bump happy-dom from 20.14.6 to 21.0.4 - #241

Merged
atomantic merged 1 commit into
mainfrom
dependabot/npm_and_yarn/happy-dom-21.0.4
Nov 10, 2026
Merged

atomantic merged 1 commit into
mainfrom
dependabot/npm_and_yarn/happy-dom-21.0.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Bumps happy-dom from 20.14.6 to 21.0.4.

Release notes

Sourced from happy-dom's releases.

v21.0.4

👷‍♂️ Patch fixes

  • Fixed a code injection vulnerability in the ESM compiler - By @​capricorn86
  • Fixed cross-origin isolation so opaque-origin data: iframes cannot access their parent or top window - By @​capricorn86

v21.0.3

👷‍♂️ Patch fixes

  • Fixes security vulnerability where authorization header was forwarded when redirecting - By @​capricorn86

v21.0.2

👷‍♂️ Patch fixes

v21.0.1

👷‍♂️ Patch fixes

v21.0.0

💣 Breaking Changes

  • Disables CSS and IFrame loading by default to prevent server-side request forgery (SSRF) - By @​capricorn86
    • An attacker could embed <iframe> or <link rel="stylesheet"> elements in untrusted HTML to make Happy DOM send HTTP requests from the server to attacker-chosen URLs, including internal services. This could allow access to otherwise unreachable endpoints or trigger unintended actions, depending on the application and its network access.
    • The settings property disableCSSFileLoading has been deprecated
    • Added the new settings properties enableCSSFileLoading and enableIframePageLoading
    • If you don't believe that you are at risk, you can keep the same behavior as in <=v20.14.6 by sending in { enableCSSFileLoading: true, enableIframePageLoading: true } as broswer settings (e.g. new Window({ settings }));
Commits
  • fd16352 fix: Fixed a code injection vulnerability in the ESM compiler (#2537)
  • 75ab0fb fix: Fixed cross-origin isolation so opaque-origin data: iframes cannot acces...
  • 875ef5c fix: Fixes security vulnerability where authorization header was forwarded wh...
  • 1f3ffdf fix: Fixes SSRF security vulnerability by doing a target-origin bypass in the...
  • f55c7e0 chore: Update security documentation (#2509)
  • 2b91e68 fix: Adds alias for enabling CSS and iframe loading in server-renderer (#2503)
  • 0a99c75 BREAKING CHANGE: Disables CSS and IFrame loading by default (#2502)
  • See full diff in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 25, 2026
@atomantic

Copy link
Copy Markdown
Owner

@dependabot rebase

Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 20.14.6 to 21.0.4.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](capricorn86/happy-dom@v20.14.6...v21.0.4)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-version: 21.0.4
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title build(deps-dev): bump happy-dom from 20.12.0 to 21.0.4 build(deps-dev): bump happy-dom from 20.14.6 to 21.0.4 Nov 9, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/happy-dom-21.0.4 branch from f83f0df to a9d473c Compare November 9, 2026 15:09
@atomantic

Copy link
Copy Markdown
Owner

Reviewed the major-version changes and both open happy-dom alerts (#92, GHSA-c8p4-j97h-3vg8 / CVE-2026-118660; #88, GHSA-834v-8h66-3h79 / CVE-2026-115895). Upstream 0a99c752 disables external stylesheet/iframe loading by default and guards those loading paths; fd163520 validates import binding identifiers and JSON-escapes imported property names, with a regression for alias code injection. SparseTree uses happy-dom only for client component tests, sets no loading opt-ins, and has no iframe/stylesheet-loading test dependency. Verified npm ci, the full workspace build, and all 15 client tests on this exact PR head. Local validation ran UNCONTAINED because the prescribed containment probe returned exit 2 (Docker containment disabled). Upstream evidence: capricorn86/happy-dom@0a99c75 and capricorn86/happy-dom@fd16352 . No source migration is required.

@atomantic
atomantic merged commit 3f60a31 into main Nov 10, 2026
4 checks passed
@atomantic
atomantic deleted the dependabot/npm_and_yarn/happy-dom-21.0.4 branch November 10, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant