Repository navigation
build(deps): override ws to 8.23.1 (GHSA-37g9-w4hg-h9qr) - #387
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 wsshowedwscame in only transitively, through parents that pin it exactly:ws8.21.08.22.0^8.21.0The 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.1added 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-lockfilepasses, and the tree now holds onlyws@8.23.1biome check pnpm-workspace.yamlpackages/storage:vitest run test/miniflare-patch.test.ts(1/1) andtest/d1.test.ts(9/9), both on the patched MiniflareCI runs the full suite.
🤖 Generated with Claude Code