[Snyk] Security upgrade react-native from 0.74.1 to 0.76.0#16
[Snyk] Security upgrade react-native from 0.74.1 to 0.76.0#16revan-zhang wants to merge 1 commit intomasterfrom
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. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
| "jpush-react-native": "^3.2.1", | ||
| "react": "18.2.0", | ||
| "react-native": "0.74.1" | ||
| "react-native": "0.76.0" |
There was a problem hiding this comment.
🟡 devDependencies @react-native/* packages not updated to match new react-native 0.76.0
react-native is bumped from 0.74.1 to 0.76.0, but the @react-native/babel-preset, @react-native/eslint-config, @react-native/metro-config, and @react-native/typescript-config devDependencies remain pinned at 0.74.83. These @react-native/* packages are part of the react-native monorepo and are versioned in lockstep with it. Using 0.74.83 tooling with react-native 0.76.0 will likely cause Metro bundler configuration incompatibilities or build failures in the example app, as each major react-native release expects the matching versions of these companion packages.
Prompt for agents
In example/package.json, update the @react-native/* devDependencies on lines 22-25 to versions matching react-native 0.76.0. These packages are released in lockstep with react-native from the same monorepo. The correct versions would be the 0.76.x variants, e.g.:
"@react-native/babel-preset": "0.76.0",
"@react-native/eslint-config": "0.76.0",
"@react-native/metro-config": "0.76.0",
"@react-native/typescript-config": "0.76.0"
Also verify that react 18.2.0 is compatible with react-native 0.76.0 (react-native 0.76 typically expects react 18.3.1).
Was this helpful? React with 👍 or 👎 to provide feedback.
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.
| "jpush-react-native": "^3.2.1", | ||
| "react": "18.2.0", | ||
| "react-native": "0.74.1" | ||
| "react-native": "0.76.0" |
There was a problem hiding this comment.
Mismatched React version for React Native 0.76.0
High Severity
react-native was bumped to 0.76.0 but react remains at 18.2.0. React Native 0.76.0 expects react 18.3.1 as its peer dependency. This version mismatch will cause npm peer dependency errors during install and may lead to runtime incompatibilities, since 0.76.0 depends on APIs and deprecation warnings introduced in React 18.3.
| "jpush-react-native": "^3.2.1", | ||
| "react": "18.2.0", | ||
| "react-native": "0.74.1" | ||
| "react-native": "0.76.0" |
There was a problem hiding this comment.
Dev dependencies not updated for React Native 0.76
High Severity
react-native was bumped to 0.76.0 but @react-native/babel-preset, @react-native/eslint-config, @react-native/metro-config, and @react-native/typescript-config all remain pinned at 0.74.83. These packages are versioned in lockstep with react-native and need to be 0.76.x. Notably, the babel preset 0.76 enables the Hermes parser by default, which is required for correct transpilation in 0.76.


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
Upgrading
react-nativeacross minor versions can introduce breaking runtime/build changes in the example app and its native tooling, despite being a targeted dependency bump.Overview
Updates the example app dependency on
react-nativefrom0.74.1to0.76.0inexample/package.jsonto address a reported vulnerability (via transitive deps).Written by Cursor Bugbot for commit 76f091f. This will update automatically on new commits. Configure here.