Skip to content

build(deps): override ws to 8.23.1 (GHSA-37g9-w4hg-h9qr) - #387

Merged
Madraka merged 1 commit into
mainfrom
fix/ws-ghsa-37g9
Dec 2, 2026
Merged

Madraka merged 1 commit into
mainfrom
fix/ws-ghsa-37g9

Conversation

@Madraka

@Madraka Madraka commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Resolves Dependabot alert #46: ws < 8.23.0, "Memory exhaustion DoS via unbounded automatic pong responses" (GHSA-37g9-w4hg-h9qr, high).

Why an override

pnpm why -r ws showed ws came in only transitively, through parents that pin it exactly:

Parent Declared ws
miniflare 4.20260730.0 (ADR-0012's pin), 5.20261123.1-beta, 5.20261127.0-beta 8.21.0
@cloudflare/vite-plugin 1.70.2 8.22.0
happy-dom 21.0.4 ^8.21.0

The latest miniflare and @cloudflare/vite-plugin releases still pin those versions, so bumping a parent can't fix this. Nothing in Cloudhal imports ws. Only dev and test tools load it.

Change

  • pnpm-workspace.yaml: "ws@>=8.0.0 <8.23.0": 8.23.1 added next to the sharp and undici overrides. Its scope is the advisory's own range, and a comment gives the reason and when to remove it. 8.23.1 is the latest patch release, published 2026-11-27.
  • pnpm-lock.yaml: the override line, plus the 8.21.0 and 8.22.0 entries replaced by 8.23.1 in the five snapshots that use them. Nothing else changes, and the Miniflare patch hash is the same.

Checks (local, light)

  • pnpm install --frozen-lockfile passes, and the tree now holds only ws@8.23.1
  • biome check pnpm-workspace.yaml
  • packages/storage: vitest run test/miniflare-patch.test.ts (1/1) and test/d1.test.ts (9/9), both on the patched Miniflare

CI runs the full suite.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
@Madraka
Madraka enabled auto-merge December 2, 2026 07:46
@Madraka
Madraka merged commit 2b95b80 into main Dec 2, 2026
10 checks passed
@Madraka
Madraka deleted the fix/ws-ghsa-37g9 branch December 2, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant