react-router
8.5.1 · 27 Oct 2026MIT80.5M / weekRepositorynpmAtom feed
Upgrading react-router From 7.15.0 to 7.15.1
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 1
- advisory fixed
- 1
- new
- 5
- fixes
Security
5 advisories still affect 7.15.1
- React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydrationmoderate · GHSA-337j-9hxr-rhxg
- React Router: Unauthenticated Denial of Service via Inefficient Route Matchinghigh · GHSA-chx6-hx7r-mcp5
- React Router: RSCErrorHandler Missing Protocol Validation (XSS)moderate · GHSA-h8fp-f39c-q6mh
Upgrading to 7.18.2 clears them.
Fixes 1 advisory affecting 7.15.0
- React Router: Potential CSRF via PUT/PATCH/DELETE document requestslow · GHSA-84g9-w2xq-vcv6
Release by release
- New
Add a new
unstable_useRouterState()hook that consolidates access to active and pending router states (RFC: #12358) - Fixed
Update router to operate on fetcher Maps in an immutable manner to avoid delayed React renders from potentially reading an updated but not yet committed Map. This could result in brief flickers in some fetcher-driven optimistic UI scenarios.
- Fixed
Fix
serverLoader()returning stale SSR data when a client navigation aborts pending hydration before the hydrationclientLoaderresolves - Fixed
Fix
RouterProvideronErrorcallback not being called for synchronous initial loader errors in SPA mode - Fixed
Memoize
useFetchersto return a stable identity and only change if fetchers changed - Fixed
Internal refactor to consolidate mutation request detection through shared utility
- New
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.