[Snyk] Security upgrade react-native from 0.20.0 to 0.69.12#31
[Snyk] Security upgrade react-native from 0.20.0 to 0.69.12#31MHxGH-ServiceAccount wants to merge 1 commit intomasterfrom
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-IMMUTABLE-15423650
|
This is a massive upgrade across approximately 49 major versions, representing a complete project migration rather than a simple dependency update. Manually upgrading by changing the version number in Recommendation: Do not attempt a manual upgrade. The only supported method is to use the official React Native Upgrade Helper. This tool generates a diff of all the file changes between your current version and the target version, which you must apply incrementally. For older or heavily customized projects, creating a new project with the target version and migrating your source code is often a safer approach. Key Breaking Changes Include:
Source: React Native Upgrade Helper
|
⛔ Snyk checks have failed. 2 issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| }, | ||
| "dependencies": { | ||
| "react-native": "0.20.0", | ||
| "react-native": "0.69.12", |
There was a problem hiding this comment.
Start script references removed CLI path
High Severity
The start script references node_modules/react-native/local-cli/cli.js, which was removed in react-native 0.69.x. Upgrading react-native to 0.69.12 without updating this script path means npm start will fail with a "module not found" error. In react-native 0.69+, the CLI entry point moved to @react-native-community/cli.
| }, | ||
| "dependencies": { | ||
| "react-native": "0.20.0", | ||
| "react-native": "0.69.12", |
There was a problem hiding this comment.
Missing required react peer dependency for RN 0.69
High Severity
React Native 0.69 requires react (version 18) as a peer dependency, but the dependencies block doesn't include react at all. In RN 0.20, React was bundled within react-native itself, so this wasn't needed. With the upgrade to 0.69.12, the project will fail to install or run without an explicit react dependency.


Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
examples/SampleRN20/package.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-IMMUTABLE-15423650
Breaking Change Risk
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
Note
Medium Risk
Upgrades
react-nativeacross a large major-version gap, which can easily break theSampleRN20example app build/runtime even though the change is limited to a single dependency version bump.Overview
Updates the
examples/SampleRN20app to usereact-native@0.69.12instead of0.20.0, addressing the reported dependency vulnerability.Written by Cursor Bugbot for commit ef4e978. This will update automatically on new commits. Configure here.