[Snyk] Security upgrade react-native from 0.72.6 to 0.74.0#26
[Snyk] Security upgrade react-native from 0.72.6 to 0.74.0#26revan-zhang wants to merge 1 commit intomainfrom
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-FASTXMLPARSER-15677840
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
| "dependencies": { | ||
| "react": "18.2.0", | ||
| "react-native": "0.72.6" | ||
| "react-native": "0.74.0" |
There was a problem hiding this comment.
🟡 Incomplete version upgrade: @react-native/metro-config left at 0.72.x after react-native bumped to 0.74.0
The PR bumps react-native from 0.72.6 to 0.74.0 but leaves @react-native/metro-config at ^0.72.11 (line 20). These packages are versioned in lockstep with React Native (note both were previously aligned at 0.72.x). Using the 0.72.x metro-config with react-native@0.74.0 is a version mismatch that can cause build or bundling failures in the example app. The metro-react-native-babel-preset at 0.76.8 (line 22) also likely needs updating for RN 0.74 compatibility.
Prompt for agents
In example/package.json, update the devDependencies to match react-native 0.74.0. Specifically:
1. At line 20, change @react-native/metro-config from ^0.72.11 to ^0.74.0
2. At line 22, update or replace metro-react-native-babel-preset 0.76.8 with the appropriate version for RN 0.74 (likely @react-native/babel-preset ^0.74.0)
These packages are versioned in lockstep with React Native and should be kept aligned.
Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| "dependencies": { | ||
| "react": "18.2.0", | ||
| "react-native": "0.72.6" | ||
| "react-native": "0.74.0" |
There was a problem hiding this comment.
Incompatible @react-native/metro-config version after upgrade
High Severity
Upgrading react-native to 0.74.0 without updating @react-native/metro-config from ^0.72.11 breaks the build. The ^0.72.11 semver range only resolves to >=0.72.11 <0.73.0, which is incompatible with react-native 0.74.0. The metro-config package is versioned in lockstep with react-native and needs to be ^0.74.0. Similarly, metro-react-native-babel-preset at 0.76.8 may need updating to match the metro version bundled with react-native 0.74.


Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
example/package.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-FASTXMLPARSER-15677840
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:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.
Note
Medium Risk
Upgrades the core React Native dependency, which may introduce native build/runtime regressions or require aligned tooling changes despite being a simple manifest edit.
Overview
Updates the example app’s
package.jsonto upgradereact-nativefrom0.72.6to0.74.0(Snyk-driven) to address a reported dependency vulnerability.Written by Cursor Bugbot for commit f4db8b1. This will update automatically on new commits. Configure here.