From a9727506a48bdf33cb68288405c8264d80fc77a1 Mon Sep 17 00:00:00 2001 From: zaebee Date: Sat, 31 Oct 2026 11:32:08 +0000 Subject: [PATCH] fix(deps): bump happy-dom past the high-severity advisory GHSA-834v-8h66-3h79 / CVE-2026-115895 is the incomplete fix for CVE-2026-33943: an unsanitized import alias in Happy DOM leads to host code execution. The vulnerable range is >= 17.0.0, <= 21.0.3; 21.0.4 patches it. ui/ declares both packages directly, so both move from ^20.10.2 to ^21.0.4, and @happy-dom/global-registrator@21.0.4 depends on happy-dom ^21.0.4, so the lock keeps one copy. The lockfile diff is four lines - the two declarations and the two resolutions; nothing else re-resolved. Verified with the pinned bun the UI workflow uses (1.3.14): frozen install, eslint, prettier --check, tsc --noEmit, vitest run (9.5s), vite build - all green. --- ui/bun.lock | 8 ++++---- ui/package.json | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/bun.lock b/ui/bun.lock index 92313672..7666a3ab 100644 --- a/ui/bun.lock +++ b/ui/bun.lock @@ -15,7 +15,7 @@ }, "devDependencies": { "@eslint/js": "^9.0.0", - "@happy-dom/global-registrator": "^20.10.2", + "@happy-dom/global-registrator": "^21.0.4", "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", @@ -30,7 +30,7 @@ "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^7.1.1", "eslint-plugin-react-refresh": "^0.5.2", - "happy-dom": "^20.10.2", + "happy-dom": "^21.0.4", "jsdom": "^29.1.1", "prettier": "^3.8.3", "rollup-plugin-visualizer": "^7.0.1", @@ -177,7 +177,7 @@ "@exodus/bytes": ["@exodus/bytes@1.15.1", "", { "peerDependencies": { "@noble/hashes": "^1.8.0 || ^2.0.0" }, "optionalPeers": ["@noble/hashes"] }, "sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q=="], - "@happy-dom/global-registrator": ["@happy-dom/global-registrator@20.10.2", "", { "dependencies": { "@types/node": ">=20.0.0", "happy-dom": "^20.10.2" } }, "sha512-/DC0hluanNJDVPUu69cidD46sGwzt8MJATiGx7WgCScn+ZH48fJQ0fvTfMPXY82/ASXWxnNo8P4BdHyU/dI/EA=="], + "@happy-dom/global-registrator": ["@happy-dom/global-registrator@21.0.4", "", { "dependencies": { "@types/node": ">=20.0.0", "happy-dom": "^21.0.4" } }, "sha512-Bbr0hW9hhDhBf3Jp0EyDlkCbFgbr0z2jd3BMKYOYW+fOkPM4Nx195GMXyCtRCGEgoNn6i09FabXrSkNFm2ONzg=="], "@humanfs/core": ["@humanfs/core@0.19.2", "", { "dependencies": { "@humanfs/types": "^0.15.0" } }, "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA=="], @@ -563,7 +563,7 @@ "graphlib": ["graphlib@2.1.8", "", { "dependencies": { "lodash": "^4.17.15" } }, "sha512-jcLLfkpoVGmH7/InMC/1hIvOPSUh38oJtGhvrOFGzioE1DZ+0YW16RgmOJhHiuWTvGiJQ9Z1Ik43JvkRPRvE+A=="], - "happy-dom": ["happy-dom@20.10.2", "", { "dependencies": { "@types/node": ">=20.0.0", "@types/whatwg-mimetype": "^3.0.2", "@types/ws": "^8.18.1", "buffer-image-size": "^0.6.4", "entities": "^7.0.1", "whatwg-mimetype": "^3.0.0", "ws": "^8.21.0" } }, "sha512-5p9Sxis3eowDJKqx90QCsgbNA02XXqJ59NOHvD4V6cxp+rP4d/xOyVx7uY3hS8hiUbY1VeiFH8lbJ81AyuDVLQ=="], + "happy-dom": ["happy-dom@21.0.4", "", { "dependencies": { "@types/node": ">=20.0.0", "@types/whatwg-mimetype": "^3.0.2", "@types/ws": "^8.18.1", "buffer-image-size": "^0.6.4", "entities": "^7.0.1", "whatwg-mimetype": "^3.0.0", "ws": "^8.21.0" } }, "sha512-tFm+GaLBgo6o0awHnvHaNoraVo27qJ+2tZEtZ+cIa08hXbeitrxAJajLI05hsUy/2/YTKcUjQYzHe5mCcraLBw=="], "has-bigints": ["has-bigints@1.1.0", "", {}, "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg=="], diff --git a/ui/package.json b/ui/package.json index fc182369..4cbc8701 100644 --- a/ui/package.json +++ b/ui/package.json @@ -28,7 +28,7 @@ }, "devDependencies": { "@eslint/js": "^9.0.0", - "@happy-dom/global-registrator": "^20.10.2", + "@happy-dom/global-registrator": "^21.0.4", "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", @@ -43,7 +43,7 @@ "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^7.1.1", "eslint-plugin-react-refresh": "^0.5.2", - "happy-dom": "^20.10.2", + "happy-dom": "^21.0.4", "jsdom": "^29.1.1", "prettier": "^3.8.3", "rollup-plugin-visualizer": "^7.0.1",