Skip to content

Commit

Permalink
fix(deps): Bump ws from 7.4.5 to 7.5.0 (#148)
Browse files Browse the repository at this point in the history
Bumps [ws](https://github.com/websockets/ws) from 7.4.5 to 7.5.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>7.5.0</h2>
<h1>Features</h1>
<ul>
<li>Some errors now have a <code>code</code> property describing the specific type of error
that has occurred (<a href="https://github-redirect.dependabot.com/websockets/ws/issues/1901">#1901</a>).</li>
</ul>
<h1>Bug fixes</h1>
<ul>
<li>A close frame is now sent to the remote peer if an error (such as a data
framing error) occurs (8806aa9a).</li>
<li>The close code is now always 1006 if no close frame is received, even if the
connection is closed due to an error (8806aa9a).</li>
</ul>
<h2>7.4.6</h2>
<h1>Bug fixes</h1>
<ul>
<li>Fixed a ReDoS vulnerability (00c425ec).</li>
</ul>
<p>A specially crafted value of the <code>Sec-Websocket-Protocol</code> header could be used
to significantly slow down a ws server.</p>
<pre lang="js"><code>for (const length of [1000, 2000, 4000, 8000, 16000, 32000]) {
  const value = 'b' + ' '.repeat(length) + 'x';
  const start = process.hrtime.bigint();
<p>value.trim().split(/ *, */);</p>
<p>const end = process.hrtime.bigint();</p>
<p>console.log('length = %d, time = %f ns', length, end - start);
}
</code></pre></p>
<p>The vulnerability was responsibly disclosed along with a fix in private by
<a href="https://github.com/robmcl4">Robert McLaughlin</a> from University of California, Santa Barbara.</p>
<p>In vulnerable versions of ws, the issue can be mitigated by reducing the maximum
allowed length of the request headers using the <a href="https://nodejs.org/api/cli.html#cli_max_http_header_size_size"><code>--max-http-header-size=size</code></a>
and/or the <a href="https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener"><code>maxHeaderSize</code></a> options.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/websockets/ws/commit/e3f0c1720aab640fe78dc578907046fb84422ccd"><code>e3f0c17</code></a> [dist] 7.5.0</li>
<li><a href="https://github.com/websockets/ws/commit/1d3f4cbb0ebb2519f6cc707e9f4344006d74ce03"><code>1d3f4cb</code></a> [doc] Fix anchor tags for error codes</li>
<li><a href="https://github.com/websockets/ws/commit/6eea0d466b08a278c048092ee1cb06aee9f48cc9"><code>6eea0d4</code></a> [doc] Fix typo</li>
<li><a href="https://github.com/websockets/ws/commit/bb5d44b11880861f9fb0429e2c132f435a78198b"><code>bb5d44b</code></a> [doc] Sort error codes alphabetically</li>
<li><a href="https://github.com/websockets/ws/commit/c6e30806704cd1ff35282b85132bd29fca8acec8"><code>c6e3080</code></a> [minor] Attach error codes to all receiver errors (<a href="https://github-redirect.dependabot.com/websockets/ws/issues/1901">#1901</a>)</li>
<li><a href="https://github.com/websockets/ws/commit/074e6a8be7275a69a407f6c1fa2270c754d2834b"><code>074e6a8</code></a> [fix] Don't call <code>ws.terminate()</code> unconditionally in <code>duplex._destroy()</code></li>
<li><a href="https://github.com/websockets/ws/commit/8806aa9a836c3a616c9511adad159c65eeb153b0"><code>8806aa9</code></a> [fix] Close the connection cleanly when an error occurs</li>
<li><a href="https://github.com/websockets/ws/commit/05b8ccd639a91428d7440ad350b8d4301636b2e2"><code>05b8ccd</code></a> [doc] Fix broken link (<a href="https://github-redirect.dependabot.com/websockets/ws/issues/1897">#1897</a>)</li>
<li><a href="https://github.com/websockets/ws/commit/03a707884c591d56ad69c4c1ddd34cab0449b1fe"><code>03a7078</code></a> [doc] Remove unsafe regex from code snippet</li>
<li><a href="https://github.com/websockets/ws/commit/7ee31157d7b14bb94e0d0fd223a4a5508f4c39b9"><code>7ee3115</code></a> [doc] Add logo to coverage badge</li>
<li>Additional commits viewable in <a href="https://github.com/websockets/ws/compare/7.4.5...7.5.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ws&package-manager=npm_and_yarn&previous-version=7.4.5&new-version=7.5.0)](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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@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)

</details> [skip ci] 235cc6a
  • Loading branch information
kodiakhq[bot] committed Jun 21, 2021
1 parent efb0862 commit 4d0b854
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion api/classes/clienterror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2999,7 +2999,7 @@ <h3>name</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
2 changes: 1 addition & 1 deletion api/classes/invalidhandshakechallengeerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,7 @@ <h3>name</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
2 changes: 1 addition & 1 deletion api/classes/noncesignererror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,7 @@ <h3>name</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
2 changes: 1 addition & 1 deletion api/classes/parceldeliveryerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,7 @@ <h3>name</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
12 changes: 6 additions & 6 deletions api/classes/powebclient.html
Original file line number Diff line number Diff line change
Expand Up @@ -2845,7 +2845,7 @@ <h3>collect<wbr>Parcels</h3>
<aside class="tsd-sources">
<p>Implementation of GSCClient.collectParcels</p>
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/PoWebClient.ts#L203">src/lib/PoWebClient.ts:203</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/PoWebClient.ts#L203">src/lib/PoWebClient.ts:203</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2898,7 +2898,7 @@ <h3>deliver<wbr>Parcel</h3>
<aside class="tsd-sources">
<p>Implementation of GSCClient.deliverParcel</p>
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/PoWebClient.ts#L172">src/lib/PoWebClient.ts:172</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/PoWebClient.ts#L172">src/lib/PoWebClient.ts:172</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2932,7 +2932,7 @@ <h3>pre<wbr>Register<wbr>Node</h3>
<aside class="tsd-sources">
<p>Implementation of GSCClient.preRegisterNode</p>
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/PoWebClient.ts#L123">src/lib/PoWebClient.ts:123</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/PoWebClient.ts#L123">src/lib/PoWebClient.ts:123</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -2970,7 +2970,7 @@ <h3>register<wbr>Node</h3>
<aside class="tsd-sources">
<p>Implementation of GSCClient.registerNode</p>
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/PoWebClient.ts#L148">src/lib/PoWebClient.ts:148</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/PoWebClient.ts#L148">src/lib/PoWebClient.ts:148</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3001,7 +3001,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> init<wbr>Local</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/PoWebClient.ts#L57">src/lib/PoWebClient.ts:57</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/PoWebClient.ts#L57">src/lib/PoWebClient.ts:57</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -3033,7 +3033,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> init<wbr>Remote</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/PoWebClient.ts#L67">src/lib/PoWebClient.ts:67</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/PoWebClient.ts#L67">src/lib/PoWebClient.ts:67</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
2 changes: 1 addition & 1 deletion api/classes/poweberror.html
Original file line number Diff line number Diff line change
Expand Up @@ -3008,7 +3008,7 @@ <h3>name</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
2 changes: 1 addition & 1 deletion api/classes/refusedparcelerror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,7 @@ <h3>name</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
2 changes: 1 addition & 1 deletion api/classes/servererror.html
Original file line number Diff line number Diff line change
Expand Up @@ -2999,7 +2999,7 @@ <h3>name</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/aa3992d/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
<li>Defined in <a href="https://github.com/relaycorp/relaynet-poweb-js/blob/235cc6a/src/lib/errors.ts#L6">src/lib/errors.ts:6</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down

0 comments on commit 4d0b854

Please sign in to comment.