react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 7.1.5 to 7.2.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
Security
14 advisories still affect 7.2.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
- New
New type-safe
hrefutility that guarantees links point to actual paths in your app - New
Add unstable support for splitting route modules in framework mode via
future.unstable_splitRouteModules - New
Add
unstable_SerializesTobrand type for library authors to register types serializable by React Router's streaming format (turbo-stream) - Fixed
Fix typegen for repeated params
- New
6 other lines we could not sort, mostly version bumps
- 7.2.0
A parent route has only a
loader(does not have aclientLoader) - 7.2.0
The parent route is pre-rendered
- 7.2.0
The parent route has children routes which are not prerendered
- 7.2.0
This means that when the child paths are loaded via the SPA fallback, the parent won't have any
loaderDatabecause there is no server on which to run theloader - 7.2.0
This can be resolved by either adding a parent
clientLoaderor pre-rendering the child paths - 7.2.0
If you add a
clientLoader, calling theserverLoader()on non-prerendered paths will throw a 404
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.