react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
6.30.6 is the newest release of 6.x.
In short
2 new5 fixed
Security
4 advisories affect 6.14.2; 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's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretationGHSA-2j2x-hqr9-3h42 · 3 Jun 2026Fixed in 6.30.4
- ModerateReact Router has unexpected external redirect via untrusted pathsGHSA-9jcx-v3wj-wh4m · 8 Jan 2026Fixed in 6.30.2
Release note
Patch Changes
Add missing
<Form state>prop to populatehistory.stateon submission navigationsTrigger an error if a
deferpromise resolves/rejects withundefinedin order to match the behavior of loaders and actions which must return a value ornullProperly handle fetcher redirects interrupted by normal navigations
Initial-load fetchers should not automatically revalidate on GET navigations
Properly decode element id when emulating hash scrolling via
<ScrollRestoration>Typescript: Enhance the return type of
Route.lazyto prohibit returning an empty objectSSR: Support proper hydration of
Errorsubclasses such asReferenceError/TypeError
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.