[Snyk] Security upgrade react-native from 0.59.9 to 0.69.12#790
[Snyk] Security upgrade react-native from 0.59.9 to 0.69.12#790gastonmorixe wants to merge 1 commit intomasterfrom
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-TAR-15038581 - https://snyk.io/vuln/SNYK-JS-LODASH-15053838
There was a problem hiding this comment.
Pull request overview
This PR upgrades React Native from version 0.59.9 to 0.69.12 in the Example app to address security vulnerabilities related to lodash (Prototype Pollution) and tar (Improper Handling of Unicode Encoding). This represents a jump of approximately 10 major versions spanning over 3 years of development.
Changes:
- React Native dependency upgraded from 0.59.9 to 0.69.12 in Example/package.json
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "dependencies": { | ||
| "react": "16.8.3", | ||
| "react-native": "0.59.9" | ||
| "react-native": "0.69.12" |
There was a problem hiding this comment.
The react-test-renderer version (16.8.3) must match the React version. When React is upgraded to version 18.x to be compatible with React Native 0.69.12, react-test-renderer should also be updated to the same 18.x version.
| "dependencies": { | ||
| "react": "16.8.3", | ||
| "react-native": "0.59.9" | ||
| "react-native": "0.69.12" |
There was a problem hiding this comment.
The metro-react-native-babel-preset version (^0.51.1) is incompatible with React Native 0.69.12. This package should be updated to a version compatible with React Native 0.69, which would be around ^0.72.x or higher. Using an outdated babel preset will cause build failures.
| "react": "16.8.3", | ||
| "react-native": "0.59.9" | ||
| "react-native": "0.69.12" |
There was a problem hiding this comment.
Upgrading React Native from 0.59.9 to 0.69.12 requires updating the React version from 16.8.3 to 18.x. React Native 0.69.x has a peer dependency on React 18.0.0 or higher. The current React version (16.8.3) is incompatible and will cause runtime errors.
Snyk has created this PR to fix 2 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):
Example/package.jsonNote for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the
.yarn/cache/directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to runyarnto update the contents of the./yarn/cachedirectory.If you are not using zero-install you can ignore this as your flow should likely be unchanged.
Vulnerabilities that will be fixed with an upgrade:
SNYK-JS-TAR-15038581
SNYK-JS-LODASH-15053838
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Prototype Pollution