Skip to content

Commit fa22a6e

Browse files
gabrieldonadelfacebook-github-bot
authored andcommitted
build: Bump ws to 6.2.2 due to ReDoS vulnerability (#34759)
Summary: A moderate vulnerability was found in all versions of `ws` below 7.4.6 June last year. React native current uses v6.1.4 which is susceptible to it, fortunately this security fix has been backported to v6.X.X and we don't need to upgrade any major versions/worry about breaking changes. This PR bumps `ws` to 6.2.2 ([CHANGELOG](https://github.com/websockets/ws/releases/tag/6.2.2)) due to this ReDoS vulnerability More information about this vulnerability can be found here -> GHSA-6fc8-4gx4-v693 Closes #31646 ## Changelog [Internal] [Security] - Bump ws to 6.2.2 due to ReDoS vulnerability Pull Request resolved: #34759 Test Plan: Ensure WebSocket tests are working as expected Tested HMR working on Twilight | iOS | Android | | https://pxl.cl/2g70M | https://pxl.cl/2g70V | Reviewed By: hramos, cortinico Differential Revision: D39722905 fbshipit-source-id: 12088ab5ea26d904675de484e2014949d6696465
1 parent b24f60f commit fa22a6e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"stacktrace-parser": "^0.1.3",
139139
"use-sync-external-store": "^1.0.0",
140140
"whatwg-fetch": "^3.0.0",
141-
"ws": "^6.1.4"
141+
"ws": "^6.2.2"
142142
},
143143
"devDependencies": {
144144
"flow-bin": "^0.188.1",

packages/rn-tester/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"devDependencies": {
3131
"connect": "^3.6.5",
32-
"ws": "^6.1.4"
32+
"ws": "^6.2.2"
3333
},
3434
"codegenConfig": {
3535
"name": "AppSpecs",

repo-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"shelljs": "^0.8.5",
5252
"signedsource": "^1.0.0",
5353
"typescript": "4.1.3",
54-
"ws": "^6.1.4",
54+
"ws": "^6.2.2",
5555
"yargs": "^17.5.1"
5656
},
5757
"devDependencies": {

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9460,7 +9460,7 @@ ws@>=7.4.6:
94609460
resolved "https://registry.yarnpkg.com/ws/-/ws-8.9.0.tgz#2a994bb67144be1b53fe2d23c53c028adeb7f45e"
94619461
integrity sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==
94629462

9463-
ws@^6.1.4:
9463+
ws@^6.2.2:
94649464
version "6.2.2"
94659465
resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.2.tgz#dd5cdbd57a9979916097652d78f1cc5faea0c32e"
94669466
integrity sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==

0 commit comments

Comments
 (0)