Skip to content

[Snyk] Security upgrade react-native from 0.74.1 to 0.76.0#17

Open
revan-zhang wants to merge 1 commit into
masterfrom
snyk-fix-57503c3211b9c02b2e98e19b7bf7c9cf
Open

[Snyk] Security upgrade react-native from 0.74.1 to 0.76.0#17
revan-zhang wants to merge 1 commit into
masterfrom
snyk-fix-57503c3211b9c02b2e98e19b7bf7c9cf

Conversation

@revan-zhang

@revan-zhang revan-zhang commented Mar 26, 2026

Copy link
Copy Markdown

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • example/package.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Improper Validation of Specified Quantity in Input
SNYK-JS-FASTXMLPARSER-15699647
  685  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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-native across minor versions can introduce breaking runtime/build changes in the app and native dependencies, despite being a single-line change. Requires validating iOS/Android builds and core flows after the upgrade.

Overview
Updates the example app’s dependency on react-native from 0.74.1 to 0.76.0 (Snyk-driven security upgrade) to address a reported vulnerability in the dependency tree.

Written by Cursor Bugbot for commit 8ca0b92. This will update automatically on new commits. Configure here.

@revan-zhang

revan-zhang commented Mar 26, 2026

Copy link
Copy Markdown
Author

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedeslint@​8.57.18910010050100
Addedjest@​29.7.01001006894100
Addedreact-test-renderer@​18.2.0751008398100
Addedjpush-react-native@​3.2.67910010098100
Addedtypescript@​5.0.41001009010090
Addedprettier@​2.8.8921009890100
Updatedreact-native@​1000.0.0 ⏵ 0.76.098 +10100100100 +50100

View full report

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread example/package.json
"jpush-react-native": "^3.2.1",
"react": "18.2.0",
"react-native": "0.74.1"
"react-native": "0.76.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React Native devDependencies not updated to match 0.76.0

High Severity

Upgrading react-native to 0.76.0 without updating the corresponding @react-native/babel-preset, @react-native/eslint-config, @react-native/metro-config, and @react-native/typescript-config packages from 0.74.83 to their 0.76.x counterparts creates a version mismatch. These @react-native/* scoped packages are tightly coupled to the react-native version and are likely to cause build failures or runtime errors with incompatible configurations.

Additional Locations (1)
Fix in Cursor Fix in Web

Comment thread example/package.json
"jpush-react-native": "^3.2.1",
"react": "18.2.0",
"react-native": "0.74.1"
"react-native": "0.76.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React version incompatible with react-native 0.76.0 peer dependency

High Severity

react-native 0.76.0 requires react 18.3.x as a peer dependency, but react remains pinned at 18.2.0. This version mismatch will cause npm peer dependency errors during installation and may lead to runtime incompatibilities, since React 18.3 includes preparatory deprecation warnings needed for the New Architecture features enabled by default in 0.76.

Fix in Cursor Fix in Web

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 1 additional finding in Devin Review.

Open in Devin Review

Comment thread example/package.json
"jpush-react-native": "^3.2.1",
"react": "18.2.0",
"react-native": "0.74.1"
"react-native": "0.76.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Incomplete react-native upgrade: @react-native/ devDependencies left at 0.74.x*

The react-native dependency was bumped from 0.74.1 to 0.76.0, but the @react-native/* devDependencies (@react-native/babel-preset, @react-native/eslint-config, @react-native/metro-config, @react-native/typescript-config) are all still pinned at 0.74.83 (example/package.json:22-25). These packages are versioned in lockstep with react-native and are expected to match the major.minor version. Using the 0.74.x tooling packages with react-native 0.76.0 will likely cause build failures or runtime errors in the example app (e.g., metro config incompatibilities, missing babel transforms for new architecture features introduced in 0.76).

Prompt for agents
In example/package.json, update the @react-native/* devDependencies on lines 22-25 to match the react-native 0.76.x version. Specifically, update:
  - @react-native/babel-preset from 0.74.83 to the 0.76.x version
  - @react-native/eslint-config from 0.74.83 to the 0.76.x version
  - @react-native/metro-config from 0.74.83 to the 0.76.x version
  - @react-native/typescript-config from 0.74.83 to the 0.76.x version

Also verify that react 18.2.0 (line 15) is compatible with react-native 0.76.0; react-native 0.76 may require a newer version of react (e.g., 18.3.1).
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants