Skip to content

Conversation

@snyk-io
Copy link

@snyk-io snyk-io bot commented Jan 10, 2026

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):

  • React/package.json
  • React/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Open Redirect
SNYK-JS-REACTROUTER-14908286
  115  

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:

🦉 Open Redirect

@snyk-io
Copy link
Author

snyk-io bot commented Jan 10, 2026

Merge Risk: High

This major version upgrade from v5 to v6 for react-router and react-router-dom introduces significant breaking changes and requires a considerable migration effort. The API has been fundamentally redesigned around React Hooks, resulting in a smaller bundle size but requiring substantial code modifications.

Highlights:

  • API and Component Changes: The <Switch> component is replaced by <Routes>, which has a new route ranking algorithm. The <Route> component's component and render props are replaced by the element prop.
  • Hooks and Navigation: Programmatic navigation is now handled by the useNavigate hook instead of useHistory. The useRouteMatch hook is also removed in favor of other hooks like useParams.

Source: React Router documentation
Recommendation: Follow the official migration guide closely. A gradual migration using the react-router-dom-v5-compat package is recommended to update the application incrementally.

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@snyk-io
Copy link
Author

snyk-io bot commented Jan 10, 2026

Snyk checks have failed. 1 issues have been found so far.

Status Scanner Critical High Medium Low Total (1)
Open Source Security 0 1 0 0 1 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

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

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant