← Back to Pull requests

Bump ws from 8.21.3 to 8.23.0 #9001

Closed
unknown closed this pull request without merging on Dec 04, 2026 04:07 UTC
View on GitHub
unknown unknown commented on Dec 01, 2026 22:15 UTC
Author

Bumps ws from 8.21.3 to 8.23.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/websockets/ws/releases">ws's releases</a>.</em></p>
<blockquote>
<h2>8.23.0</h2>
<h1>Features</h1>
<ul>
<li>Introduced the <code>maxPendingAutoPongs</code> option (ace7248f).</li>
</ul>
<h1>Bug fixes</h1>
<ul>
<li>Fixed a remote memory exhaustion DoS vulnerability (ace7248f).</li>
</ul>
<p>A malicious peer can flood the other peer with Ping frames while stopping reads,
forcing it to buffer Pong frames that are automatically sent in response until
memory is exhausted, leading to process termination due to OOM.</p>
<pre lang="js"><code>import { WebSocket, WebSocketServer } from 'ws';
<p>const wss = new WebSocketServer({ port: 0 }, function () {
const data = Buffer.alloc(125);
const { port } = wss.address();
const ws = new WebSocket(<code>ws://localhost:${port}</code>);</p>
<p>ws.on('open', function () {
ws.pause();</p>
<pre><code>(function ping() {
ws.ping(data, function (err) {
if (err) return;
ping();
});
})();
</code></pre>
<p>});</p>
<p>ws.on('error', console.error);
ws.on('close', function (code, reason) {
console.log(<code>client close - code: ${code} reason: ${reason.toString()}</code>);
});
});</p>
<p>wss.on('connection', function (ws) {
ws.on('error', console.error);
ws.on('close', function (code, reason) {
console.log(<code>server close - code: ${code} reason: ${reason.toString()}</code>);
});
});
</code></pre></p>
<p>The vulnerability was responsibly disclosed by multiple reporters:</p>
<ul>
<li><a href="https://github.com/koyokr">Younghun Ko</a></li>
<li><a href="https://github.com/kigma00">G0r4ni8</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/websockets/ws/commit/d3872194f8f82e30732e6fbd89ea8cd4014b3474"><code>d387219</code></a> [dist] 8.23.0</li>
<li><a href="https://github.com/websockets/ws/commit/ace7248f685b10a87eff882e66c5b37fbee03d63"><code>ace7248</code></a> [security] Limit automatically sent pending pongs</li>
<li><a href="https://github.com/websockets/ws/commit/73d283c2e7c91fe4721d0eadfaf876d94d14e55b"><code>73d283c</code></a> [test] Ensure <code>DuplexSocket</code>s automatically emit the <code>'close'</code> event</li>
<li><a href="https://github.com/websockets/ws/commit/2582a67a73c040df7859cabbd44d2ddb0e21bb97"><code>2582a67</code></a> [dist] 8.22.2</li>
<li><a href="https://github.com/websockets/ws/commit/3eec2525ab30fe300676d9028d24a3d6028e4fd7"><code>3eec252</code></a> [perf] Do not retain the read buffer via the close reason (<a href="https://redirect.github.com/websockets/ws/issues/2354">#2354</a>)</li>
<li><a href="https://github.com/websockets/ws/commit/9757c6987c081780d64c0d115f00dc01fd17b16b"><code>9757c69</code></a> [fix] Do not modify the <code>url.URL</code> object (<a href="https://redirect.github.com/websockets/ws/issues/2353">#2353</a>)</li>
<li><a href="https://github.com/websockets/ws/commit/e23d55eebd8ebdbde84be0f9a903b7c4b1880a3b"><code>e23d55e</code></a> [fix] Percent-decode the userinfo of the URL (<a href="https://redirect.github.com/websockets/ws/issues/2352">#2352</a>)</li>
<li><a href="https://github.com/websockets/ws/commit/335a610c216c982174e746ecec1db448c1a6ec1b"><code>335a610</code></a> [perf] Do not retain the read buffer via the frame mask (<a href="https://redirect.github.com/websockets/ws/issues/2350">#2350</a>)</li>
<li><a href="https://github.com/websockets/ws/commit/f40ccfff97bbdea2eba574ecd6c1ba88156c73c3"><code>f40ccff</code></a> [doc] Adjust Node.js version requirement in README (<a href="https://redirect.github.com/websockets/ws/issues/2348">#2348</a>)</li>
<li><a href="https://github.com/websockets/ws/commit/c18a80a10f2769688d90d69c2f96ec7828dfbe62"><code>c18a80a</code></a> [dist] 8.22.1</li>
<li>Additional commits viewable in <a href="https://github.com/websockets/ws/compare/8.21.3...8.23.0">compare view</a></li>
</ul>
</details>
<br />

![Dependabot compatibility score](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR

  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it

  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency

  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)

  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)

  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

  • You can disable automated security fix PRs for this repo from the Security Alerts page.

    </details>

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: dario-piotrowicz Review duration: 3231m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #9001"
    general weight: 0.35
    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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 20.5% · Safe to merge
    20.5%