Files
react-native/packages/rn-tester/package.json
T
Gabriel Donadel Dall'AgnolandFacebook GitHub Bot fa22a6e2d7 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 -> https://github.com/advisories/GHSA-6fc8-4gx4-v693

Closes https://github.com/facebook/react-native/issues/31646

## Changelog

[Internal] [Security] - Bump ws to 6.2.2 due to ReDoS vulnerability

Pull Request resolved: https://github.com/facebook/react-native/pull/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
2022-10-10 02:58:40 -07:00

43 lines
1.3 KiB
JSON

{
"private": true,
"name": "@react-native/tester",
"version": "0.0.1",
"license": "MIT",
"description": "React Native tester app.",
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/rn-tester",
"repository": {
"type": "git",
"url": "git@github.com:facebook/react-native.git",
"directory": "packages/rn-tester"
},
"scripts": {
"start": "../../scripts/packager.sh",
"install-android-jsc": "../../gradlew :packages:rn-tester:android:app:installJscDebug",
"install-android-hermes": "../../gradlew :packages:rn-tester:android:app:installHermesDebug",
"clean-android": "rm -rf android/app/build",
"setup-ios-jsc": "bundle install && USE_HERMES=0 bundle exec pod install",
"setup-ios-hermes": "bundle install && USE_HERMES=1 bundle exec pod install",
"clean-ios": "rm -rf build/generated/ios Pods Podfile.lock"
},
"dependencies": {
"invariant": "^2.2.4",
"nullthrows": "^1.1.1"
},
"peerDependencies": {
"react": "18.2.0",
"react-native": "*"
},
"devDependencies": {
"connect": "^3.6.5",
"ws": "^6.2.2"
},
"codegenConfig": {
"name": "AppSpecs",
"type": "all",
"jsSrcsDir": ".",
"android": {
"javaPackageName": "com.facebook.fbreact.specs"
}
}
}