react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
6.30.6 is the newest release of 6.x.
In short
1 fixed6 changed1 internal
Security
3 advisories affect 6.4.0; 7.18.0 fixes them
- ModerateReact Router: Open redirect via backslash in <Link> and useNavigate (CVE-2025-68470 bypass)GHSA-wrjc-x8rr-h8h6 · 23 Jul 2026Fixed in 7.18.0
- ModerateReact Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR HydrationGHSA-337j-9hxr-rhxg · 23 Jul 2026Fixed in 7.18.0
- ModerateReact Router has unexpected external redirect via untrusted pathsGHSA-9jcx-v3wj-wh4m · 8 Jan 2026Fixed in 6.30.2
Release note
The section about react-router of a note shared by several packages.
Whoa this is a big one! 6.4.0 brings all the data loading and mutation APIs over from Remix. Here's a quick high level overview, but it's recommended you go check out the docs, especially the feature overview and the tutorial.
New APIs
Create your router with
createMemoryRouterRender your router with
<RouterProvider>Load data with a Route
loaderand mutate with a RouteactionHandle errors with Route
errorElementDefer non-critical data with
deferandAwait
Bug Fixes
Path resolution is now trailing slash agnostic
useLocationreturns the scoped location inside a<Routes location>component
Updated Dependencies
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.