react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 7.2.0 to 7.3.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 3
- new
- 3
- fixes
Before you upgrade
Tick each one off as you go- Breaking7.3.0
Security
14 advisories still affect 7.3.0
- React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretationmoderate · GHSA-2j2x-hqr9-3h42
- React Router vulnerable to XSS via Open Redirectshigh · GHSA-2w69-qvjg-hvjx
- React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydrationmoderate · GHSA-337j-9hxr-rhxg
Upgrading to 7.18.0 clears them.
Release by release
- Breaking
⚠️ Enabling middleware contains a breaking change to the
contextparameter passed to yourloader/actionfunctions - see below for more information. - New
Add
fetcherKeyas a parameter topatchRoutesOnNavigation - New
Support middleware on routes (unstable)
- New
Add
contextsupport to client side data routers (unstable) - Fixed
Skip resource route flow in dev server in SPA mode
- Fixed
Fix types for loaderData and actionData that contained
Records - Fixed
Fix single fetch
_root.datarequests when abasenameis used
- Breaking
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.