From 6902e5525684e9f4a0008b142162b308728c45c7 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Thu, 27 May 2021 03:51:04 -0700
Subject: [PATCH] Bump ws from 7.3.0 to 7.4.6 in /desktop (#2371)
Summary:
Bumps [ws](https://github.com/websockets/ws) from 7.3.0 to 7.4.6.
Release notes
Sourced from ws's releases.
7.4.6
Bug fixes
- Fixed a ReDoS vulnerability (00c425ec).
A specially crafted value of the Sec-Websocket-Protocol header could be used
to significantly slow down a ws server.
for (const length of [1000, 2000, 4000, 8000, 16000, 32000]) {
const value = 'b' + ' '.repeat(length) + 'x';
const start = process.hrtime.bigint();
value.trim().split(/ *, */);
const end = process.hrtime.bigint();
console.log('length = %d, time = %f ns', length, end - start);
}
The vulnerability was responsibly disclosed along with a fix in private by
Robert McLaughlin from University of California, Santa Barbara.
In vulnerable versions of ws, the issue can be mitigated by reducing the maximum
allowed length of the request headers using the --max-http-header-size=size
and/or the maxHeaderSize options.
7.4.5
Bug fixes
- UTF-8 validation is now done even if
utf-8-validate is not installed
(23ba6b29).
- Fixed an edge case where
websocket.close() and websocket.terminate() did
not close the connection (67e25ff5).
7.4.4
Bug fixes
- Fixed a bug that could cause the process to crash when using the
permessage-deflate extension (92774377).
7.4.3
Bug fixes
7.4.2
Bug fixes
... (truncated)
Commits
f5297f7 [dist] 7.4.6
00c425e [security] Fix ReDoS vulnerability
990306d [lint] Fix prettier error
32e3a84 [security] Remove reference to Node Security Project
8c914d1 [minor] Fix nits
fc7e27d [ci] Test on node 16
587c201 [ci] Do not test on node 15
f672710 [dist] 7.4.5
67e25ff [fix] Fix case where abortHandshake() does not close the connection
23ba6b2 [fix] Make UTF-8 validation work even if utf-8-validate is not installed
- Additional commits viewable in compare view
[](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)
---
Dependabot commands and options
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)
Pull Request resolved: https://github.com/facebook/flipper/pull/2371
Reviewed By: passy
Differential Revision: D28714468
Pulled By: nikoant
fbshipit-source-id: c2a3a7091599f29d453a35bf89bab4a03817509c
---
desktop/app/package.json | 2 +-
desktop/static/package.json | 2 +-
desktop/yarn.lock | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/desktop/app/package.json b/desktop/app/package.json
index a5e9cfd5a..4fa9d4b48 100644
--- a/desktop/app/package.json
+++ b/desktop/app/package.json
@@ -76,7 +76,7 @@
"tmp": "^0.2.1",
"uuid": "^8.3.2",
"which": "^2.0.1",
- "ws": "^7.4.5",
+ "ws": "^7.4.6",
"xdg-basedir": "^4.0.0"
},
"optionalDependencies": {
diff --git a/desktop/static/package.json b/desktop/static/package.json
index b5a139ede..f76f3f653 100644
--- a/desktop/static/package.json
+++ b/desktop/static/package.json
@@ -10,7 +10,7 @@
"mac-ca": "^1.0.6",
"mkdirp": "^1.0.4",
"node-fetch": "^2.6.1",
- "ws": "^7.4.4",
+ "ws": "^7.4.6",
"xdg-basedir": "^4.0.0",
"yargs": "^16.2.0"
}
diff --git a/desktop/yarn.lock b/desktop/yarn.lock
index 2093e6954..8f2a50bda 100644
--- a/desktop/yarn.lock
+++ b/desktop/yarn.lock
@@ -13811,7 +13811,7 @@ ws@1.1.5, ws@^1.1.5:
options ">=0.0.5"
ultron "1.0.x"
-ws@7.3.0, ws@^7.2.3, ws@^7.4.4, ws@^7.4.5, ws@~7.4.2:
+ws@7.3.0, ws@^7.2.3, ws@^7.4.6, ws@~7.4.2:
version "7.3.0"
resolved "https://registry.yarnpkg.com/ws/-/ws-7.3.0.tgz#4b2f7f219b3d3737bc1a2fbf145d825b94d38ffd"
integrity sha512-iFtXzngZVXPGgpTlP1rBqsUK82p9tKqsWRPg5L56egiljujJT3vGAYnHANvFxBieXrTFavhzhxW52jnaWV+w2w==