react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 6.13.0 to 6.30.6
39 releases in betweennotes for 33
Reading releases, release notes and advisories…
Counted from 33 of 39 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking6.16.0
- Breaking6.16.0
Security
2 advisories still affect 6.30.6
- React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydrationmoderate · GHSA-337j-9hxr-rhxg
- React Router: Open redirect via backslash in <Link> and useNavigate (CVE-2025-68470 bypass)moderate · GHSA-wrjc-x8rr-h8h6
Upgrading to 7.18.0 clears them.
Fixes 2 advisories affecting 6.13.0
- React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretationmoderate · GHSA-2j2x-hqr9-3h42
- React Router has unexpected external redirect via untrusted pathsmoderate · GHSA-9jcx-v3wj-wh4m
- 6.30.3
Release by release
- Fixed
@remix-run/router- Fix double slash normalization foruseNavigatecolon urls
- Fixed
6.30.5no release note
- Fixed
@remix-run/router- LiftdecodePathcall out of hot path during route matching - Fixed
@remix-run/router- Normalize double slashes in redirect paths
- Fixed
- Security
- Fixed
Validate redirect locations
- Fixed
Normalize double-slashes in
resolvePath
- Fixed
6.28.1 – 6.30.15 releases, no release note
- New
Log deprecation warnings for v7 flags
- Fixed
Update JSDoc URLs for new website structure (add /v6/ segment)
- New
- New
Add new
PatchRoutesOnNavigationFunctionArgstype for convenience - New
Stabilize
unstable_dataStrategy - New
Stabilize the
unstable_flushSyncoption for navigations and fetchers - New
Stabilize the
unstable_viewTransitionoption for navigations and the correspondingunstable_useViewTransitionStatehook - Fixed
Fix bug when submitting to the current contextual route (parent route with an index child) when an
?indexparam already exists from a prior submission - Fixed
Fix
useFormActionbug - when removing?indexparam it would not keep other non-Remixindexparams - Fixed
Fix types for
RouteObjectwithinPatchRoutesOnNavigationFunction'spatchmethod so it doesn't expect agnostic route objects passed topatch
- New
3 other lines we could not sort, mostly version bumps
- 6.25.0
When this flag is enabled, actions will not automatically trigger a revalidation if they return/throw a
Responsewith a4xx/5xxstatus code - 6.25.0
You may still opt-into revalidation via
shouldRevalidate - 6.25.0
This also changes
shouldRevalidate'sunstable_actionStatusparameter toactionStatus
27 internal lines (docs, tests, tooling) left out.
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.