From c81b7d0588dee9eca6920e3aa2fcdd4137162c43 Mon Sep 17 00:00:00 2001 From: Madraka <8898640+Madraka@users.noreply.github.com> Date: Wed, 2 Dec 2026 10:44:14 +0300 Subject: [PATCH] build(deps): override ws to 8.23.1 (GHSA-37g9-w4hg-h9qr) ws 8.x below 8.23.0 answers pings without bound, a memory-exhaustion DoS (Dependabot alert #46). Miniflare 4.20260730.0 and the 5.x betas pin ws 8.21.0 and @cloudflare/vite-plugin 1.70.2 pins 8.22.0 exactly; their latest releases still do, so no parent bump fixes it. A scoped override (ws@>=8.0.0 <8.23.0 -> 8.23.1) sits next to the sharp and undici ones. Nothing in Cloudhal imports ws; only dev and test tools load it. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com> --- pnpm-lock.yaml | 31 +++++++++---------------------- pnpm-workspace.yaml | 6 ++++++ 2 files changed, 15 insertions(+), 22 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 076204a3..19f3fecc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -387,6 +387,7 @@ catalogs: overrides: sharp@<0.35.5: 0.35.5 undici@<7.30.1: 7.30.2 + ws@>=8.0.0 <8.23.0: 8.23.1 patchedDependencies: '@cloudflare/kumo@2.18.1': a200daaa512420a926cecd1e9d9e941a977c60bb611d6d510753530b5eae9215 @@ -5299,20 +5300,8 @@ packages: '@cloudflare/workers-types': optional: true - ws@8.21.0: - resolution: {integrity: sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - - ws@8.22.0: - resolution: {integrity: sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==} + ws@8.23.1: + resolution: {integrity: sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 @@ -6028,7 +6017,7 @@ snapshots: unenv: 2.0.0-rc.24 vite: 8.4.0(@types/node@26.6.11)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.1) wrangler: 4.169.0(@cloudflare/workers-types@5.20261007.1)(@types/node@26.6.11)(vitest@5.1.2(@types/node@26.6.11)(happy-dom@21.0.4)(vite@8.4.0(@types/node@26.6.11)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)(yaml@2.9.1))) - ws: 8.22.0 + ws: 8.23.1 transitivePeerDependencies: - '@types/node' - bufferutil @@ -7933,7 +7922,7 @@ snapshots: buffer-image-size: 0.6.4 entities: 7.0.1 whatwg-mimetype: 3.0.0 - ws: 8.22.0 + ws: 8.23.1 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -8466,7 +8455,7 @@ snapshots: sharp: 0.35.5(@types/node@26.6.11) undici: 7.30.2 workerd: 1.20260730.1 - ws: 8.21.0 + ws: 8.23.1 youch: 4.1.0-beta.10 transitivePeerDependencies: - '@types/node' @@ -8479,7 +8468,7 @@ snapshots: sharp: 0.35.5(@types/node@26.6.11) undici: 7.30.2 workerd: 1.20261123.1 - ws: 8.21.0 + ws: 8.23.1 youch: 4.1.0-beta.10 transitivePeerDependencies: - '@types/node' @@ -8492,7 +8481,7 @@ snapshots: sharp: 0.35.5(@types/node@26.6.11) undici: 7.30.2 workerd: 1.20261127.1 - ws: 8.21.0 + ws: 8.23.1 youch: 4.1.0-beta.10 transitivePeerDependencies: - '@types/node' @@ -9296,9 +9285,7 @@ snapshots: - utf-8-validate - vitest - ws@8.21.0: {} - - ws@8.22.0: {} + ws@8.23.1: {} xxhash-wasm@1.1.0: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 9b3a3ed6..313aa170 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -106,9 +106,15 @@ minimumReleaseAgeExclude: # GHSA-rfgv-xxqx-mfg5, GHSA-w293-vg96-wgc3, GHSA-4cwx-7wf7-3272 and the medium/low undici 7.x # advisories patched in 7.29.0, 7.29.1 and 7.30.1 (Dependabot alerts #5-#32 on 2026-11-08). Every # other undici 7.x in the tree is already 7.30.1+. Remove when Miniflare 4 is no longer pinned. +# ws 8.x below 8.23.0 answers pings without bound (GHSA-37g9-w4hg-h9qr, Dependabot alert #46, +# 2026-12-01). Miniflare (4.20260730.0 and the 5.x betas) pins ws 8.21.0 and +# @cloudflare/vite-plugin 1.70.2 pins 8.22.0 exactly; their latest releases still do. Nothing in +# Cloudhal imports ws, and these are dev and test tools only. Remove when `pnpm why -r ws` shows +# nothing below 8.23.0 without it. overrides: "sharp@<0.35.5": 0.35.5 "undici@<7.30.1": 7.30.2 + "ws@>=8.0.0 <8.23.0": 8.23.1 # The Miniflare patch backports cloudflare/workers-sdk#15552 (the sync binding proxy's off-by-one # desync, the `fetch-sync.ts:147` assertion; merged for Miniflare 5 only) and closes the sync