← Back to Pull requests

Bump ws to 8.23.1 to address GHSA-37g9-w4hg-h9qr #17346

Closed
unknown closed this pull request without merging on Dec 03, 2026 14:05 UTC
View on GitHub
unknown unknown commented on Dec 02, 2026 22:21 UTC
Author

Fixes #17340.

Bumps the ws catalog entry from 8.21.0 to 8.23.1 to address GHSA-37g9-w4hg-h9qr, a high-severity memory-exhaustion DoS: a peer floods ping frames while not reading, forcing ws to buffer the automatic pong replies until the process OOMs. Fixed upstream in ws@8.23.0; 8.23.1 is the latest patch release.

Because miniflare pins ws exactly, downstream projects (wrangler, @cloudflare/vitest-plugin) cannot clear the npm audit finding with a lockfile update and have to add an overrides entry. Mirrors #13978 and #14346, which did the same for earlier advisories.

Changed: pnpm-workspace.yaml, pnpm-lock.yaml (regenerated with pnpm install --lockfile-only, pnpm 10.33.0; only the ws entries change, and --frozen-lockfile passes), and a patch changeset for miniflare, wrangler, @cloudflare/vite-plugin and @cloudflare/deploy-helpers.

---

  • Tests

  • - [ ] Tests included/updated
    - [ ] Automated tests not possible - manual testing has been completed as follows:
    - [x] Additional testing not necessary because: patch-level bump within ws 8.x; upstream lists it as a security fix that only adds an opt-in maxPendingAutoPongs option, and miniflare's existing tests cover the WebSocket code path. Locally (Windows, Node 26): pnpm install --frozen-lockfile passes, miniflare builds, and test/http/websocket.spec.ts + test/http/fetch.spec.ts pass (63/63) against ws 8.23.1.
  • Public documentation

  • - [ ] Cloudflare docs PR(s):
    - [x] Documentation not necessary because: dependency bump only, nothing user-facing.

    <!-- devin-review-badge-begin -->

    ---

    <a href="https://cloudflare.devinenterprise.com/review/cloudflare/workers-sdk/pull/17346" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
    <!-- devin-review-badge-end -->

    Diff: 262 lines (+196 / -66) across 3 files Reviewer: NuroDev Review duration: 944m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 262 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.333
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #17346"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.3% (MEDIUM) · Higher = larger blast radius
    39.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.5% · Safe to merge
    15.5%