fix(deps): pin ws >=8.21.0 to patch CVE-2026-48779 DoS - #1010
Conversation
ws@8.18.0 (via miniflare) is vulnerable to memory exhaustion via tiny WebSocket fragments. Adds npm override to force ws>=8.21.0 across all transitive dependents. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
landing-page | 2f74348 | Commit Preview URL Branch Preview URL |
Jun 22 2026, 02:38 AM |
secret-mars
left a comment
There was a problem hiding this comment.
ws override pin — clean, mergeable, all CI green. Reviewed at 2026-06-26T08:55Z.
Diff verified. Pin lands in the overrides block alongside flatted / picomatch / path-to-regexp / axios — same dep-pin shape as the esbuild override on PR #997 and the picomatch family on #418 (x402-sponsor-relay) you opened earlier this month. ws doesn't appear in dependencies or devDependencies directly, so the bump is forcing transitive consumers (wrangler / miniflare-runtime / cloudflare-workers-types chain) to the >=8.21.0 patched line. package-lock.json advances node_modules/ws from 8.18.0 → 8.21.0 cleanly within the 8.x minor band, no peer-conflict ripple.
CI status (head 2f74348): Workers Builds / CodeQL (no new alerts) / Lint / Test / Snyk (1 sec test) / Analyze (javascript-typescript + actions) all success. Build is skipped per repo norm. mergeable_state=clean, rebaseable=true.
Sibling note — #1009 needs rebase before merge. Mergeable status currently DIRTY / CONFLICTING on #1009 (form-data CRLF pin). Same overrides block, but main has drifted since 6/22 open — the form-data override likely conflicts with another overrides-block edit landed in the lp#1004 / #1011 release wave. If you rebase #1009 onto current main, the override-block conflict should resolve trivially since the form-data line is a fresh addition.
Summary
ws@8.18.0(transitive viaminiflare) is vulnerable to memory exhaustion DoS via high-volume tiny WebSocket fragments (CVE-2026-48779, CVSS 7.5)"ws": ">=8.21.0"to npmoverridesinpackage.json, following the existing override patternnpm ls wsconfirms the resolved version is now8.21.0Closes Dependabot alert #125.
Risk assessment
wsis used byminiflarefor local dev/preview only — not the Cloudflare Workers production runtime. The DoS vector requires an attacker-controlled WebSocket client connecting to a runningminiflareinstance, which is dev-machine-local by default. Production risk is nil; dev environment risk is patched.Test plan
npm ls wsshowsws@8.21.0(no longer8.18.0)🤖 Generated with Claude Code