Skip to content

[Snyk] Security upgrade react-native from 0.59.9 to 0.69.12#791

Open
gastonmorixe wants to merge 1 commit intomasterfrom
snyk-fix-2b8255a2d3edc6d5b90907c66304d7f5
Open

[Snyk] Security upgrade react-native from 0.59.9 to 0.69.12#791
gastonmorixe wants to merge 1 commit intomasterfrom
snyk-fix-2b8255a2d3edc6d5b90907c66304d7f5

Conversation

@gastonmorixe
Copy link
Copy Markdown
Member

snyk-top-banner

Snyk has created this PR to fix 2 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • Example/package.json

Note 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 run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠️ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Directory Traversal
SNYK-JS-TAR-15032660
  149  
medium severity Directory Traversal
SNYK-JS-TAR-15127355
  129  

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:

🦉 Directory Traversal

Copilot AI review requested due to automatic review settings January 30, 2026 13:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR attempts to upgrade React Native from 0.59.9 to 0.69.12 in the Example application to fix two directory traversal vulnerabilities in the tar dependency (SNYK-JS-TAR-15032660 and SNYK-JS-TAR-15127355). However, the upgrade is incomplete and will cause breaking changes.

Changes:

  • Upgrades react-native dependency 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"
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

This upgrade from React Native 0.59.9 to 0.69.12 is incompatible with React 16.8.3. React Native 0.69.x requires React 18.0.0 or higher according to the official React Native compatibility matrix. The current React version (16.8.3) will cause runtime errors and build failures.

Additionally, the start script on line 6 references "node_modules/react-native/local-cli/cli.js" which was removed in React Native 0.60. From 0.60 onwards, React Native uses the @react-native-community/cli package instead.

To properly upgrade to React Native 0.69.12, the following changes are needed:

  1. Update React to version 18.0.0 or higher
  2. Update react-test-renderer to match the React version
  3. Update the start script to use "react-native start" instead
  4. Update other dependencies like metro-react-native-babel-preset to compatible versions
  5. Update the yarn.lock file (which the PR description indicates has failed)

Copilot uses AI. Check for mistakes.
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.

3 participants